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.001018/0.001017, allocations: 108 kB / 16.92 MB, free: 5.758 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.001039/0.001039, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.181/1.181, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008741/0.0008742, allocations: 48.02 kB / 300.7 MB, free: 5.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06881/0.06969, allocations: 49.44 MB / 350.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01562/0.08534, allocations: 19.41 MB / 369.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1446/0.23, allocations: 5.966 MB / 375.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.2329, allocations: 155.9 kB / 375.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008992/0.2419, allocations: 5.853 MB / 381.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007174/0.2492, allocations: 3.333 MB / 384.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.252, allocations: 1.582 MB / 386.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.264, allocations: 12.36 MB / 398.8 MB, free: 152 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007072/0.271, allocations: 7.651 MB / 406.5 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006253/0.2773, allocations: 3.55 MB / 410 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007471/0.2848, allocations: 4.737 MB / 414.8 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003281/0.2882, allocations: 0.717 MB / 415.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004758/0.2929, allocations: 1.676 MB / 417.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004297/0.2972, allocations: 4.18 MB / 421.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006285/0.3035, allocations: 4.761 MB / 426.1 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.3161, allocations: 14.04 MB / 440.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.3161, allocations: 0 / 440.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3162, allocations: 0 / 440.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003172/0.3165, allocations: 4 kB / 440.1 MB, free: 8.375 MB / 350.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.02646/0.343, allocations: 10.31 MB / 450.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.343, allocations: 8.031 kB / 450.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002511/0.3455, allocations: 1.141 MB / 451.6 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2859/0.6314, allocations: 24.25 MB / 475.9 MB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02074/0.6522, allocations: 9.583 MB / 485.4 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/0.6526, allocations: 426.2 kB / 485.9 MB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00197/0.6546, allocations: 0.5849 MB / 486.4 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02986/0.6845, allocations: 16.17 MB / 0.4908 GB, free: 9.211 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003708/0.6849, allocations: 103 kB / 0.4909 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.6864, allocations: 264.8 kB / 0.4912 GB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004441/0.6909, allocations: 2.764 MB / 0.4939 GB, free: 6.141 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02622/0.7171, allocations: 12.86 MB / 0.5064 GB, free: 9.266 MB / 430.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.3674/1.085, allocations: 66.44 MB / 0.5713 GB, free: 99.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01756/1.102, allocations: 7.599 MB / 0.5787 GB, free: 96.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004576/1.107, allocations: 4.205 MB / 0.5829 GB, free: 94.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/1.123, allocations: 11.68 MB / 0.5943 GB, free: 88.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/1.123, allocations: 63.91 kB / 0.5943 GB, free: 88.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 4.989e-06/1.123, allocations: 0 / 0.5943 GB, free: 88.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1526/1.276, allocations: 47.39 MB / 0.6406 GB, free: 48.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/1.276, allocations: 406 kB / 0.641 GB, free: 48.06 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007295/1.283, allocations: 7.151 MB / 0.648 GB, free: 40.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004716/1.284, allocations: 77.7 kB / 0.648 GB, free: 40.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002007/1.286, allocations: 5.179 MB / 0.6531 GB, free: 35.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009342/1.286, allocations: 1.24 MB / 0.6543 GB, free: 34.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001773/1.288, allocations: 1.65 MB / 0.6559 GB, free: 32.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.77e-05/1.288, allocations: 305.1 kB / 0.6562 GB, free: 32.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004061/1.292, allocations: 3.955 MB / 0.6601 GB, free: 28.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/1.298, allocations: 8.595 MB / 0.6685 GB, free: 17.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/1.311, allocations: 13.49 MB / 0.6816 GB, free: 1.875 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.905e-05/1.311, allocations: 48 kB / 0.6817 GB, free: 1.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03388/1.345, allocations: 17.17 MB / 0.6985 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.345, allocations: 72 kB / 0.6985 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.345, allocations: 160 kB / 0.6987 GB, free: 376 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2058/1.551, allocations: 5.771 MB / 0.7043 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005318/1.556, allocations: 1.755 MB / 0.706 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03638/1.592, allocations: 31.68 MB / 0.737 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.599, allocations: 0.5197 MB / 0.7375 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009391/1.6, allocations: 475.4 kB / 0.7379 GB, free: 128 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.004442/1.604, allocations: 3.452 MB / 0.7413 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/1.605, allocations: 0.6573 MB / 0.7419 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01995/1.625, allocations: 11.48 MB / 0.7531 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-05/1.625, allocations: 32 kB / 0.7532 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/1.625, allocations: 20 kB / 0.7532 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.885e-05/1.625, allocations: 11.95 kB / 0.7532 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0369/1.662, allocations: 24.86 MB / 0.7775 GB, free: 91.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-05/1.662, allocations: 4 kB / 0.7775 GB, free: 91.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/1.664, allocations: 419.3 kB / 0.7779 GB, free: 91.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01478/1.679, allocations: 5.392 MB / 0.7832 GB, free: 85.76 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007024/1.68, allocations: 60 kB / 0.7832 GB, free: 85.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03158/1.711, allocations: 30.35 MB / 0.8129 GB, free: 55.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.711, allocations: 8 kB / 0.8129 GB, free: 55.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02523/1.737, allocations: 16.48 MB / 0.829 GB, free: 38.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/1.738, allocations: 0.6795 MB / 0.8296 GB, free: 38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/1.74, allocations: 63.98 kB / 0.8297 GB, free: 37.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003819/1.744, allocations: 263 kB / 0.8299 GB, free: 37.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009729/1.745, allocations: 242.6 kB / 0.8302 GB, free: 37.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003954/1.745, allocations: 99.27 kB / 0.8303 GB, free: 37.35 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006244/1.751, allocations: 4.62 MB / 0.8348 GB, free: 32.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.751, allocations: 0 / 0.8348 GB, free: 32.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007346/1.759, allocations: 1.964 MB / 0.8367 GB, free: 30.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.02434/1.783, allocations: 17.19 MB / 0.8535 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1666/1.95, allocations: 13.31 MB / 0.8665 GB, free: 141.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/1.95, allocations: 2 kB / 0.8665 GB, free: 141.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008477/1.958, allocations: 4.687 MB / 0.8711 GB, free: 141.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006043/1.964, allocations: 1.088 MB / 0.8721 GB, free: 141.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/2.11, allocations: 114.1 MB / 0.9835 GB, free: 41.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008951/2.119, allocations: 5.532 MB / 0.9889 GB, free: 35.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006733/2.126, allocations: 2.622 MB / 0.9915 GB, free: 33.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004738/2.13, allocations: 3.748 MB / 0.9952 GB, free: 29.37 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/2.13, allocations: 0 / 0.9952 GB, free: 29.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.198/7.328, allocations: 162.3 MB / 1.154 GB, free: 61.04 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.79/25.11, allocations: 10.2 kB / 1.154 GB, free: 61.03 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