Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 104.2 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 58.19 kB / 306.4 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.08326, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007949/0.09124, allocations: 7.13 MB / 364 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003868/0.09515, allocations: 2.368 MB / 366.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008528/0.09603, allocations: 19.94 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.09764, allocations: 445.7 kB / 366.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.09881, allocations: 333.7 kB / 367.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.09931, allocations: 175.8 kB / 367.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.1007, allocations: 1.14 MB / 368.5 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.1014, allocations: 446.6 kB / 368.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006466/0.102, allocations: 422.1 kB / 369.3 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006229/0.1026, allocations: 477.7 kB / 369.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.1028, allocations: 72 kB / 369.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.1032, allocations: 99.98 kB / 370 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.1033, allocations: 187.2 kB / 370.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000541/0.1039, allocations: 0.5091 MB / 370.7 MB, free: 340 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.149/0.2529, allocations: 1.368 MB / 372 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2529, allocations: 0 / 372 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2529, allocations: 0 / 372 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.578e-05/0.253, allocations: 1.156 kB / 372 MB, free: 12.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002929/0.2559, allocations: 1.245 MB / 373.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.256, allocations: 12.28 kB / 373.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.2561, allocations: 126.5 kB / 373.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005679/0.2567, allocations: 144.9 kB / 373.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009582/0.2577, allocations: 0.6335 MB / 374.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.2577, allocations: 62.39 kB / 374.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.2579, allocations: 83.69 kB / 374.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.2591, allocations: 0.7847 MB / 375.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.2592, allocations: 1.219 kB / 375.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-05/0.2593, allocations: 36.84 kB / 375.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.2593, allocations: 21.16 kB / 375.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.2604, allocations: 0.5203 MB / 375.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003939/0.2643, allocations: 3.391 MB / 379.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.2648, allocations: 226.8 kB / 379.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.2651, allocations: 117 kB / 379.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.2651, allocations: 3.094 kB / 379.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2651, allocations: 39.84 kB / 379.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.2651, allocations: 0 / 379.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002146/0.2673, allocations: 1.049 MB / 380.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.2673, allocations: 79.59 kB / 380.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009041/0.2682, allocations: 0.7374 MB / 381.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2683, allocations: 34.7 kB / 381.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.2685, allocations: 0.4906 MB / 381.8 MB, free: 7.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.997e-05/0.2686, allocations: 103.5 kB / 381.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.2687, allocations: 112.9 kB / 382.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2688, allocations: 376.4 kB / 382.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.2691, allocations: 126.3 kB / 382.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.2695, allocations: 424.9 kB / 383 MB, free: 6.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006079/0.2701, allocations: 0.5628 MB / 383.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.2701, allocations: 4.219 kB / 383.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001057/0.2712, allocations: 0.6171 MB / 384.1 MB, free: 6.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.2712, allocations: 8.938 kB / 384.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2712, allocations: 15.53 kB / 384.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.2714, allocations: 33.03 kB / 384.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004084/0.2718, allocations: 138.1 kB / 384.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007018/0.2725, allocations: 1.293 MB / 385.6 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/0.2731, allocations: 41.12 kB / 385.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.2731, allocations: 36.8 kB / 385.7 MB, free: 4.953 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002917/0.2734, allocations: 244.4 kB / 385.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.2735, allocations: 69.8 kB / 386 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006104/0.2741, allocations: 314.4 kB / 386.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2742, allocations: 6.469 kB / 386.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2742, allocations: 2.047 kB / 386.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.2742, allocations: 4.688 kB / 386.3 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.2759, allocations: 1.104 MB / 387.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2759, allocations: 2.312 kB / 387.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.2761, allocations: 61.94 kB / 387.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.62e-05/0.2762, allocations: 22.33 kB / 387.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.2762, allocations: 8.25 kB / 387.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005663/0.2768, allocations: 1.27 MB / 388.8 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2768, allocations: 2.312 kB / 388.8 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007994/0.2776, allocations: 0.5523 MB / 389.4 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000215/0.2779, allocations: 174.4 kB / 389.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.906e-05/0.278, allocations: 9.281 kB / 389.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/0.2783, allocations: 19.41 kB / 389.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.2784, allocations: 25.12 kB / 389.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2784, allocations: 19.84 kB / 389.6 MB, free: 2.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006143/0.279, allocations: 0.5037 MB / 390.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.279, allocations: 0 / 390.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006675/0.2797, allocations: 162.4 kB / 390.3 MB, free: 1.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009792/0.2807, allocations: 1.119 MB / 391.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007724/0.2815, allocations: 465.7 kB / 391.8 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2815, allocations: 5.438 kB / 391.8 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.2818, allocations: 238 kB / 392.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009845/0.2828, allocations: 164.3 kB / 392.2 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009793/0.2926, allocations: 6.938 MB / 399.2 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/0.2932, allocations: 0.9408 MB / 400.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003822/0.2936, allocations: 86.34 kB / 400.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.2939, allocations: 301.1 kB / 400.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of SimCode: time 1.312e-06/0.2939, allocations: 0 / 400.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.3237, allocations: 14.59 MB / 415.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.324, allocations: 232.8 kB / 415.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.271, allocations: 0 / 415.3 MB, free: 14.79 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches