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.001065/0.001065, allocations: 113.5 kB / 16.63 MB, free: 6.812 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.000975/0.000975, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.244/1.244, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 52.25 kB / 300.2 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09858/0.09962, allocations: 49.44 MB / 349.7 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2811/0.3807, allocations: 103.3 MB / 453 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04587/0.4266, allocations: 19.85 MB / 472.9 MB, free: 9.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01949/0.4462, allocations: 474.8 kB / 473.3 MB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009989/0.4562, allocations: 5.654 MB / 479 MB, free: 3.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007974/0.4642, allocations: 3.115 MB / 482.1 MB, free: 16 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002991/0.4672, allocations: 1.486 MB / 483.6 MB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01641/0.4837, allocations: 13.46 MB / 497 MB, free: 1.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009653/0.4934, allocations: 8.017 MB / 0.4932 GB, free: 8.961 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005807/0.4992, allocations: 3.68 MB / 0.4968 GB, free: 5.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006368/0.5056, allocations: 5.286 MB / 0.502 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00154/0.5072, allocations: 0.7188 MB / 0.5027 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.5102, allocations: 1.693 MB / 0.5043 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003607/0.5138, allocations: 4.232 MB / 0.5085 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005198/0.5191, allocations: 4.795 MB / 0.5132 GB, free: 4.492 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.5317, allocations: 14.09 MB / 0.5269 GB, free: 6.355 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.5317, allocations: 3.984 kB / 0.5269 GB, free: 6.352 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5317, allocations: 0 / 0.5269 GB, free: 6.352 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003625/0.5321, allocations: 0 / 0.5269 GB, free: 6.352 MB / 446.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.3456/0.8777, allocations: 10.32 MB / 0.537 GB, free: 152.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.515e-05/0.8778, allocations: 10.09 kB / 0.537 GB, free: 152.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004888/0.8827, allocations: 1.146 MB / 0.5381 GB, free: 152 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2679/1.151, allocations: 24.24 MB / 0.5618 GB, free: 138.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02038/1.171, allocations: 9.583 MB / 0.5712 GB, free: 129.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/1.171, allocations: 430.3 kB / 0.5716 GB, free: 128.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/1.173, allocations: 0.5841 MB / 0.5721 GB, free: 128.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02474/1.198, allocations: 16.18 MB / 0.5879 GB, free: 111 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003132/1.198, allocations: 95.11 kB / 0.588 GB, free: 110.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/1.199, allocations: 263.8 kB / 0.5883 GB, free: 110.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00349/1.203, allocations: 2.769 MB / 0.591 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0234/1.226, allocations: 12.87 MB / 0.6035 GB, free: 95.01 MB / 446.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.07586/1.302, allocations: 66.44 MB / 0.6684 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01762/1.32, allocations: 7.59 MB / 0.6758 GB, free: 18.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00397/1.324, allocations: 4.202 MB / 0.6799 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/1.338, allocations: 11.69 MB / 0.6914 GB, free: 2.695 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/1.339, allocations: 68.5 kB / 0.6914 GB, free: 2.621 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.35e-06/1.339, allocations: 0 / 0.6914 GB, free: 2.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3957/1.734, allocations: 47.37 MB / 0.7377 GB, free: 149.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/1.734, allocations: 407.3 kB / 0.7381 GB, free: 148.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009466/1.744, allocations: 7.154 MB / 0.7451 GB, free: 145.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009466/1.745, allocations: 79.34 kB / 0.7451 GB, free: 145 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003332/1.748, allocations: 5.182 MB / 0.7502 GB, free: 140.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.75, allocations: 1.235 MB / 0.7514 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/1.752, allocations: 1.647 MB / 0.753 GB, free: 137.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/1.752, allocations: 305.1 kB / 0.7533 GB, free: 137.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004316/1.757, allocations: 3.967 MB / 0.7572 GB, free: 133.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005969/1.763, allocations: 8.582 MB / 0.7656 GB, free: 122.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/1.774, allocations: 13.49 MB / 0.7787 GB, free: 107.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001074/1.775, allocations: 44 kB / 0.7788 GB, free: 107.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03332/1.808, allocations: 17.17 MB / 0.7955 GB, free: 89.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/1.808, allocations: 80.98 kB / 0.7956 GB, free: 89.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001949/1.808, allocations: 156 kB / 0.7958 GB, free: 89.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01548/1.824, allocations: 5.783 MB / 0.8014 GB, free: 83.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005081/1.829, allocations: 1.754 MB / 0.8031 GB, free: 82.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05459/1.883, allocations: 31.66 MB / 0.834 GB, free: 50.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008437/1.892, allocations: 0.5247 MB / 0.8345 GB, free: 49.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.894, allocations: 472 kB / 0.835 GB, free: 49.11 MB / 462.1 MB 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.00624/1.9, allocations: 3.467 MB / 0.8384 GB, free: 45.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001826/1.902, allocations: 0.6556 MB / 0.839 GB, free: 44.96 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02345/1.925, allocations: 11.47 MB / 0.8502 GB, free: 33.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.138e-05/1.925, allocations: 36 kB / 0.8503 GB, free: 33.39 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.191e-05/1.925, allocations: 20 kB / 0.8503 GB, free: 33.37 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.656e-05/1.925, allocations: 16.52 kB / 0.8503 GB, free: 33.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2197/2.145, allocations: 24.87 MB / 0.8746 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-05/2.145, allocations: 6.375 kB / 0.8746 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002101/2.147, allocations: 417.5 kB / 0.875 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01538/2.163, allocations: 5.395 MB / 0.8802 GB, free: 137.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005106/2.163, allocations: 61.94 kB / 0.8803 GB, free: 137.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03492/2.198, allocations: 30.35 MB / 0.9099 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/2.198, allocations: 11.56 kB / 0.91 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02489/2.223, allocations: 16.48 MB / 0.926 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/2.225, allocations: 0.6783 MB / 0.9267 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/2.226, allocations: 69.73 kB / 0.9268 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002803/2.229, allocations: 266.4 kB / 0.927 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008239/2.23, allocations: 241.1 kB / 0.9273 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/2.23, allocations: 88 kB / 0.9273 GB, free: 115.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005624/2.236, allocations: 4.62 MB / 0.9319 GB, free: 110.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/2.236, allocations: 0 / 0.9319 GB, free: 110.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006764/2.243, allocations: 1.979 MB / 0.9338 GB, free: 108.8 MB / 462.1 MB 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.0234/2.266, allocations: 17.18 MB / 0.9506 GB, free: 91.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01774/2.284, allocations: 13.31 MB / 0.9636 GB, free: 78.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/2.284, allocations: 5.969 kB / 0.9636 GB, free: 78.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006825/2.291, allocations: 4.687 MB / 0.9681 GB, free: 73.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006833/2.298, allocations: 1.086 MB / 0.9692 GB, free: 72.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4522/2.75, allocations: 117.3 MB / 1.084 GB, free: 126.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/2.76, allocations: 5.53 MB / 1.089 GB, free: 125.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007381/2.767, allocations: 2.62 MB / 1.092 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005718/2.773, allocations: 3.745 MB / 1.095 GB, free: 121.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.412e-06/2.773, allocations: 0 / 1.095 GB, free: 121.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7506/3.524, allocations: 162.2 MB / 1.254 GB, free: 143.1 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/3.524, allocations: 239.2 kB / 1.254 GB, free: 142.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.892/9.416, allocations: 0 / 1.254 GB, free: 142.8 MB / 478.1 MB (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