Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01101/0.01102, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.418/3.418, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001909/0.001909, allocations: 80.98 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006714/0.0006716, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.533/0.5337, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1979/0.7317, allocations: 88.52 MB / 463.1 MB, free: 8.121 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.09375/0.8255, allocations: 20.09 MB / 483.1 MB, free: 3.977 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03044/0.856, allocations: 466.8 kB / 483.6 MB, free: 3.52 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02592/0.882, allocations: 4.456 MB / 488.1 MB, free: 15.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.08506/0.9672, allocations: 12.79 MB / 0.4891 GB, free: 2.219 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0131/0.9804, allocations: 1.389 MB / 0.4905 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.8264/1.807, allocations: 77.71 MB / 0.5664 GB, free: 6.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03117/1.838, allocations: 8.866 MB / 0.575 GB, free: 15.91 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01075/1.849, allocations: 2.418 MB / 0.5774 GB, free: 14.36 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01198/1.861, allocations: 3.127 MB / 0.5804 GB, free: 12.12 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003579/1.865, allocations: 280 kB / 0.5807 GB, free: 11.85 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008925/1.874, allocations: 1.101 MB / 0.5818 GB, free: 10.94 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01078/1.885, allocations: 3.427 MB / 0.5851 GB, free: 8.43 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00686/1.891, allocations: 1.594 MB / 0.5867 GB, free: 7.848 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03146/1.923, allocations: 11.28 MB / 0.5977 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/1.923, allocations: 3.656 kB / 0.5977 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.398e-06/1.923, allocations: 0 / 0.5977 GB, free: 14.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006153/1.924, allocations: 4 kB / 0.5977 GB, free: 14.05 MB / 442.7 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.06362/1.987, allocations: 8.892 MB / 0.6064 GB, free: 5.871 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.008e-05/1.988, allocations: 8.031 kB / 0.6064 GB, free: 5.863 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.927/2.915, allocations: 29.79 MB / 0.6355 GB, free: 9.969 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04899/2.964, allocations: 9.172 MB / 0.6444 GB, free: 3.391 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00092/2.965, allocations: 422.3 kB / 0.6448 GB, free: 3.16 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004645/2.969, allocations: 0.5823 MB / 0.6454 GB, free: 2.777 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07889/3.048, allocations: 16.4 MB / 0.6614 GB, free: 5.957 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001065/3.049, allocations: 91.08 kB / 0.6615 GB, free: 5.902 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005514/3.055, allocations: 266.7 kB / 0.6618 GB, free: 5.828 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01234/3.067, allocations: 2.771 MB / 0.6645 GB, free: 3.559 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.147/4.214, allocations: 13.11 MB / 0.6773 GB, free: 90.79 MB / 490.8 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.1912/4.405, allocations: 66.82 MB / 0.7425 GB, free: 57.95 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05273/4.458, allocations: 7.709 MB / 0.7501 GB, free: 55.89 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04473/4.503, allocations: 11.89 MB / 0.7617 GB, free: 51.82 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001186/4.503, allocations: 66.25 kB / 0.7617 GB, free: 51.78 MB / 490.8 MB Notification: Performance of pre-optimization done (n=280): time 1.129e-05/4.503, allocations: 2.531 kB / 0.7617 GB, free: 51.78 MB / 490.8 MB Notification: Performance of matching and sorting (n=339): time 0.4521/4.955, allocations: 47.48 MB / 0.8081 GB, free: 11.24 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002082/4.956, allocations: 403.9 kB / 0.8085 GB, free: 10.76 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02841/4.984, allocations: 7.945 MB / 0.8163 GB, free: 4.93 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001346/4.986, allocations: 77.77 kB / 0.8163 GB, free: 4.887 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007039/4.993, allocations: 4.83 MB / 0.821 GB, free: 1.402 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003089/4.996, allocations: 1.243 MB / 0.8223 GB, free: 368 kB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002164/4.998, allocations: 164.5 kB / 0.8224 GB, free: 332 kB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001388/5, allocations: 0.6628 MB / 0.8231 GB, free: 15.79 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01869/5.018, allocations: 3.922 MB / 0.8269 GB, free: 13.24 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02539/5.044, allocations: 8.517 MB / 0.8352 GB, free: 4.18 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02295/5.067, allocations: 5.628 MB / 0.8407 GB, free: 424 kB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003167/5.067, allocations: 44 kB / 0.8407 GB, free: 380 kB / 0.4949 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.09944/5.167, allocations: 16.75 MB / 0.8571 GB, free: 0.5703 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003178/5.167, allocations: 72 kB / 0.8572 GB, free: 0.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005522/5.168, allocations: 160 kB / 0.8573 GB, free: 352 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5556/5.723, allocations: 5.808 MB / 0.863 GB, free: 217.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01497/5.738, allocations: 1.759 MB / 0.8647 GB, free: 217.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.108/5.846, allocations: 30.67 MB / 0.8947 GB, free: 203.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01789/5.864, allocations: 0.5343 MB / 0.8952 GB, free: 203.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00301/5.868, allocations: 471.5 kB / 0.8956 GB, free: 203.6 MB / 0.5105 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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01483/5.882, allocations: 3.476 MB / 0.899 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003515/5.886, allocations: 0.6553 MB / 0.8997 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06356/5.95, allocations: 11.45 MB / 0.9109 GB, free: 191.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/5.95, allocations: 39.98 kB / 0.9109 GB, free: 191.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.995e-05/5.95, allocations: 19.95 kB / 0.9109 GB, free: 191.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.674e-05/5.95, allocations: 15.94 kB / 0.9109 GB, free: 191.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1206/6.071, allocations: 24.93 MB / 0.9353 GB, free: 166 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.984e-05/6.071, allocations: 15.92 kB / 0.9353 GB, free: 166 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005324/6.076, allocations: 421.8 kB / 0.9357 GB, free: 165.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04336/6.12, allocations: 5.415 MB / 0.941 GB, free: 160.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001392/6.121, allocations: 60 kB / 0.941 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1069/6.228, allocations: 29.4 MB / 0.9698 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.551e-05/6.228, allocations: 7.938 kB / 0.9698 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07896/6.307, allocations: 17.59 MB / 0.9869 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007895/6.315, allocations: 1.351 MB / 0.9883 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003909/6.319, allocations: 63.98 kB / 0.9883 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0107/6.33, allocations: 268.4 kB / 0.9886 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002656/6.333, allocations: 246.4 kB / 0.9888 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001341/6.334, allocations: 92.03 kB / 0.9889 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.02056/6.355, allocations: 5.231 MB / 0.994 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.362e-06/6.355, allocations: 0 / 0.994 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02083/6.376, allocations: 2.005 MB / 0.996 GB, free: 103.7 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002232/6.378, allocations: 222.4 kB / 0.9962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04081/6.419, allocations: 10.43 MB / 1.006 GB, free: 93.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.577e-05/6.419, allocations: 4 kB / 1.006 GB, free: 93.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02083/6.44, allocations: 4.666 MB / 1.011 GB, free: 88.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01312/6.453, allocations: 0.9837 MB / 1.012 GB, free: 87.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0915/6.544, allocations: 22.62 MB / 1.034 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02106/6.566, allocations: 5.718 MB / 1.04 GB, free: 59.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004265/6.57, allocations: 463.4 kB / 1.04 GB, free: 58.61 MB / 0.5105 GB Notification: Performance of SimCode: time 2.184e-06/6.57, allocations: 0 / 1.04 GB, free: 58.61 MB / 0.5105 GB Notification: Performance of Templates: time 1.048/7.618, allocations: 197.8 MB / 1.233 GB, free: 67.96 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches