Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2573, allocations: 49.43 MB / 400.3 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02088/0.2783, allocations: 19.44 MB / 419.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.2905, allocations: 5.963 MB / 425.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003174/0.2937, allocations: 159.4 kB / 425.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01074/0.3044, allocations: 5.852 MB / 431.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008052/0.3126, allocations: 3.333 MB / 435 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.3161, allocations: 1.568 MB / 436.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01616/0.3323, allocations: 12.37 MB / 448.9 MB, free: 7.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.3425, allocations: 7.65 MB / 456.6 MB, free: 244 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006393/0.3489, allocations: 3.564 MB / 460.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007204/0.3561, allocations: 4.756 MB / 464.9 MB, free: 7.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002228/0.3584, allocations: 0.7109 MB / 465.6 MB, free: 7.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004079/0.3625, allocations: 1.69 MB / 467.3 MB, free: 5.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005389/0.3679, allocations: 4.251 MB / 471.6 MB, free: 1.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008261/0.3762, allocations: 4.764 MB / 476.3 MB, free: 12.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01704/0.3933, allocations: 14.36 MB / 490.7 MB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3933, allocations: 0 / 490.7 MB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3933, allocations: 4 kB / 490.7 MB, free: 14.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000421/0.3937, allocations: 0 / 490.7 MB, free: 14.04 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02959/0.4234, allocations: 10.33 MB / 0.4893 GB, free: 3.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4234, allocations: 8.031 kB / 0.4893 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003635/0.4271, allocations: 1.136 MB / 0.4904 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3159/0.7429, allocations: 24.25 MB / 0.5141 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02069/0.7637, allocations: 9.761 MB / 0.5236 GB, free: 316 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/0.764, allocations: 431.2 kB / 0.524 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001606/0.7656, allocations: 0.5814 MB / 0.5246 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3482/1.114, allocations: 16.17 MB / 0.5404 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004203/1.114, allocations: 99.02 kB / 0.5405 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001365/1.116, allocations: 264.8 kB / 0.5407 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004126/1.12, allocations: 2.765 MB / 0.5434 GB, free: 119.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02227/1.142, allocations: 12.86 MB / 0.556 GB, free: 114.4 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06108/1.203, allocations: 66.11 MB / 0.6205 GB, free: 49.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01649/1.22, allocations: 7.609 MB / 0.628 GB, free: 41.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004091/1.224, allocations: 4.195 MB / 0.6321 GB, free: 37.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01651/1.24, allocations: 11.68 MB / 0.6435 GB, free: 25.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/1.241, allocations: 72.48 kB / 0.6435 GB, free: 25.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.31e-06/1.241, allocations: 0 / 0.6435 GB, free: 25.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1607/1.401, allocations: 47.38 MB / 0.6898 GB, free: 9.789 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/1.401, allocations: 398.1 kB / 0.6902 GB, free: 9.312 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/1.412, allocations: 7.151 MB / 0.6972 GB, free: 2.191 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007034/1.413, allocations: 77.7 kB / 0.6973 GB, free: 2.109 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003688/1.417, allocations: 5.187 MB / 0.7023 GB, free: 12.86 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/1.418, allocations: 1.237 MB / 0.7035 GB, free: 11.61 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003052/1.421, allocations: 1.646 MB / 0.7051 GB, free: 9.945 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.105e-05/1.421, allocations: 309.1 kB / 0.7054 GB, free: 9.641 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005711/1.427, allocations: 3.959 MB / 0.7093 GB, free: 5.672 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008764/1.436, allocations: 8.587 MB / 0.7177 GB, free: 10.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01533/1.451, allocations: 13.49 MB / 0.7309 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/1.451, allocations: 44 kB / 0.7309 GB, free: 11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2204/1.672, allocations: 17.17 MB / 0.7477 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.672, allocations: 73.91 kB / 0.7477 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/1.672, allocations: 156.6 kB / 0.7479 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01626/1.689, allocations: 5.762 MB / 0.7535 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005316/1.694, allocations: 1.754 MB / 0.7552 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05059/1.744, allocations: 31.66 MB / 0.7862 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00659/1.751, allocations: 0.5199 MB / 0.7867 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/1.752, allocations: 468 kB / 0.7871 GB, free: 158.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004249/1.756, allocations: 3.459 MB / 0.7905 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.758, allocations: 0.6527 MB / 0.7911 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01963/1.777, allocations: 11.48 MB / 0.8023 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.942e-05/1.777, allocations: 39.67 kB / 0.8024 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/1.777, allocations: 16 kB / 0.8024 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-05/1.777, allocations: 19.94 kB / 0.8024 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03846/1.816, allocations: 24.72 MB / 0.8265 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.92e-05/1.816, allocations: 8 kB / 0.8266 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/1.818, allocations: 419.3 kB / 0.827 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01512/1.833, allocations: 5.376 MB / 0.8322 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006186/1.834, allocations: 61.25 kB / 0.8323 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03072/1.864, allocations: 30.34 MB / 0.8619 GB, free: 82.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.864, allocations: 15.92 kB / 0.8619 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02485/1.889, allocations: 16.49 MB / 0.878 GB, free: 65.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/1.891, allocations: 0.6787 MB / 0.8787 GB, free: 65.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/1.892, allocations: 63.98 kB / 0.8787 GB, free: 65.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003048/1.895, allocations: 263.6 kB / 0.879 GB, free: 64.97 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007478/1.896, allocations: 234.7 kB / 0.8792 GB, free: 64.74 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/1.896, allocations: 95.98 kB / 0.8793 GB, free: 64.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005453/1.902, allocations: 4.62 MB / 0.8838 GB, free: 60.06 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.11e-07/1.902, allocations: 0 / 0.8838 GB, free: 60.06 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007139/1.909, allocations: 1.973 MB / 0.8857 GB, free: 58.09 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.w) * 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 (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0257/1.934, allocations: 17.18 MB / 0.9025 GB, free: 40.71 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01378/1.948, allocations: 10.51 MB / 0.9128 GB, free: 30.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.948, allocations: 0 / 0.9128 GB, free: 30.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006497/1.955, allocations: 4.69 MB / 0.9174 GB, free: 25.42 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005125/1.96, allocations: 1.087 MB / 0.9184 GB, free: 24.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2973/2.257, allocations: 91.33 MB / 1.008 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005428/2.263, allocations: 5.521 MB / 1.013 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005099/2.268, allocations: 2.624 MB / 1.016 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/2.271, allocations: 3.741 MB / 1.019 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of SimCode: time 6.51e-07/2.271, allocations: 0 / 1.019 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.946/5.217, allocations: 160.1 MB / 1.176 GB, free: 160.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.75/44.97, allocations: 7.594 kB / 1.176 GB, free: 160.4 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches