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.001003/0.001003, allocations: 92.16 kB / 16.65 MB, free: 6.32 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.001392/0.001392, allocations: 179.4 kB / 17.56 MB, free: 5.922 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002685, allocations: 8 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.096, allocations: 50.42 MB / 352 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3071/0.4032, allocations: 100.9 MB / 452.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0441/0.4473, allocations: 19.88 MB / 472.8 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01892/0.4663, allocations: 474.8 kB / 473.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.469, allocations: 0.7033 MB / 473.9 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008409/0.4775, allocations: 3.165 MB / 477.1 MB, free: 6.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003314/0.4808, allocations: 1.455 MB / 478.6 MB, free: 5.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01972/0.5005, allocations: 17.32 MB / 495.9 MB, free: 3.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01737/0.518, allocations: 10.16 MB / 0.4942 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007946/0.526, allocations: 2.704 MB / 0.4968 GB, free: 6.953 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009028/0.535, allocations: 4.427 MB / 0.5012 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002063/0.5371, allocations: 280 kB / 0.5014 GB, free: 2.238 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004386/0.5415, allocations: 1.311 MB / 0.5027 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005719/0.5473, allocations: 3.693 MB / 0.5063 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007752/0.5551, allocations: 4.102 MB / 0.5103 GB, free: 9.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01685/0.5719, allocations: 13.4 MB / 0.5234 GB, free: 11.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.572, allocations: 0 / 0.5234 GB, free: 11.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.572, allocations: 0 / 0.5234 GB, free: 11.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006156/0.5726, allocations: 0 / 0.5234 GB, free: 11.64 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.02783/0.6005, allocations: 8.582 MB / 0.5318 GB, free: 2.973 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.6005, allocations: 8.031 kB / 0.5318 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00323/0.6038, allocations: 1.148 MB / 0.5329 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7443/1.348, allocations: 24.79 MB / 0.5571 GB, free: 47.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02108/1.369, allocations: 9.557 MB / 0.5665 GB, free: 45.03 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004829/1.37, allocations: 423.6 kB / 0.5669 GB, free: 45.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/1.372, allocations: 0.5887 MB / 0.5674 GB, free: 44.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02992/1.402, allocations: 16.24 MB / 0.5833 GB, free: 31.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005057/1.402, allocations: 100.5 kB / 0.5834 GB, free: 31.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001804/1.404, allocations: 266.8 kB / 0.5836 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004109/1.408, allocations: 2.766 MB / 0.5863 GB, free: 29.56 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0255/1.434, allocations: 12.93 MB / 0.599 GB, free: 17.27 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.08984/1.524, allocations: 66.48 MB / 0.6639 GB, free: 13.63 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02019/1.544, allocations: 7.641 MB / 0.6713 GB, free: 5.867 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005849/1.55, allocations: 4.201 MB / 0.6755 GB, free: 1.656 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01953/1.569, allocations: 11.69 MB / 0.6869 GB, free: 5.871 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.251e-05/1.57, allocations: 68.06 kB / 0.6869 GB, free: 5.801 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 5.169e-06/1.57, allocations: 0 / 0.6869 GB, free: 5.801 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.1837/1.753, allocations: 48.25 MB / 0.734 GB, free: 5.773 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/1.754, allocations: 402.1 kB / 0.7344 GB, free: 5.293 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2135/1.967, allocations: 7.148 MB / 0.7414 GB, free: 260 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008973/1.968, allocations: 79.25 kB / 0.7415 GB, free: 260 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004273/1.972, allocations: 5.176 MB / 0.7465 GB, free: 258.2 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.974, allocations: 1.249 MB / 0.7478 GB, free: 257.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/1.975, allocations: 0.7008 MB / 0.7484 GB, free: 257 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.996e-05/1.975, allocations: 309.4 kB / 0.7487 GB, free: 256.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006621/1.982, allocations: 3.957 MB / 0.7526 GB, free: 255.3 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008487/1.99, allocations: 8.594 MB / 0.761 GB, free: 247.7 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0139/2.004, allocations: 13.49 MB / 0.7742 GB, free: 237.7 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002835/2.004, allocations: 48.78 kB / 0.7742 GB, free: 237.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03462/2.039, allocations: 17.17 MB / 0.791 GB, free: 231.7 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/2.039, allocations: 71.84 kB / 0.7911 GB, free: 231.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002134/2.04, allocations: 164.4 kB / 0.7912 GB, free: 231.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01686/2.056, allocations: 5.78 MB / 0.7969 GB, free: 228.9 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005507/2.062, allocations: 1.751 MB / 0.7986 GB, free: 227.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03388/2.096, allocations: 29.73 MB / 0.8276 GB, free: 197 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008824/2.105, allocations: 0.5329 MB / 0.8281 GB, free: 196.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/2.106, allocations: 469.2 kB / 0.8286 GB, free: 196 MB / 0.5607 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.005708/2.112, allocations: 3.469 MB / 0.832 GB, free: 192.6 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/2.113, allocations: 0.6556 MB / 0.8326 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02189/2.135, allocations: 11.48 MB / 0.8438 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.195e-05/2.135, allocations: 36.55 kB / 0.8438 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-05/2.135, allocations: 16 kB / 0.8439 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-05/2.135, allocations: 17.02 kB / 0.8439 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03935/2.175, allocations: 24.89 MB / 0.8682 GB, free: 154.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.84e-05/2.175, allocations: 8 kB / 0.8682 GB, free: 154.9 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/2.177, allocations: 415.3 kB / 0.8686 GB, free: 154.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01554/2.192, allocations: 5.412 MB / 0.8739 GB, free: 149.1 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006105/2.193, allocations: 67.98 kB / 0.8739 GB, free: 149 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03182/2.225, allocations: 28.49 MB / 0.9017 GB, free: 120.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/2.225, allocations: 11.94 kB / 0.9018 GB, free: 120.1 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02695/2.252, allocations: 16.49 MB / 0.9179 GB, free: 103.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/2.254, allocations: 0.688 MB / 0.9185 GB, free: 102.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009582/2.255, allocations: 63.98 kB / 0.9186 GB, free: 102.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002965/2.258, allocations: 273.6 kB / 0.9189 GB, free: 102.4 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007468/2.259, allocations: 238.6 kB / 0.9191 GB, free: 102.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/2.259, allocations: 97.09 kB / 0.9192 GB, free: 102.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005802/2.265, allocations: 4.616 MB / 0.9237 GB, free: 97.49 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.5e-07/2.265, allocations: 0 / 0.9237 GB, free: 97.49 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007657/2.272, allocations: 1.971 MB / 0.9256 GB, free: 95.53 MB / 0.5607 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.02667/2.299, allocations: 17.19 MB / 0.9424 GB, free: 78.13 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01522/2.314, allocations: 10.47 MB / 0.9526 GB, free: 67.62 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/2.314, allocations: 4 kB / 0.9526 GB, free: 67.62 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007104/2.321, allocations: 4.687 MB / 0.9572 GB, free: 62.88 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01277/2.334, allocations: 1.014 MB / 0.9582 GB, free: 61.88 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4063/2.741, allocations: 117.4 MB / 1.073 GB, free: 212.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009195/2.75, allocations: 5.529 MB / 1.078 GB, free: 207.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007484/2.757, allocations: 2.62 MB / 1.081 GB, free: 204.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00574/2.763, allocations: 3.741 MB / 1.084 GB, free: 201 MB / 0.5607 GB Notification: Performance of SimCode: time 1.693e-06/2.763, allocations: 0 / 1.084 GB, free: 201 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2259/2.989, allocations: 156 MB / 1.237 GB, free: 45.78 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/2.989, allocations: 236 kB / 1.237 GB, free: 45.52 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.933/8.922, allocations: 0.9844 kB / 1.237 GB, free: 45.52 MB / 0.5607 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