Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 179.5 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.000936/0.000936, allocations: 98.61 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002769, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07298/0.2667, allocations: 101.3 MB / 475.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04565/0.3124, allocations: 20.44 MB / 496.2 MB, free: 6.828 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01925/0.3317, allocations: 0.4948 MB / 496.7 MB, free: 6.332 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01498/0.3467, allocations: 5.28 MB / 0.4903 GB, free: 1.027 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.226/0.5728, allocations: 15.65 MB / 0.5055 GB, free: 3.727 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006531/0.5794, allocations: 1.495 MB / 0.507 GB, free: 3.695 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1064/0.6858, allocations: 98.59 MB / 0.6033 GB, free: 5.656 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01519/0.701, allocations: 9.306 MB / 0.6124 GB, free: 15.03 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006872/0.708, allocations: 3.1 MB / 0.6154 GB, free: 12.9 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007525/0.7155, allocations: 4.631 MB / 0.6199 GB, free: 9.535 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002239/0.7178, allocations: 292 kB / 0.6202 GB, free: 9.25 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003869/0.7217, allocations: 1.137 MB / 0.6213 GB, free: 8.309 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005286/0.727, allocations: 3.848 MB / 0.6251 GB, free: 5.336 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003613/0.7306, allocations: 1.638 MB / 0.6267 GB, free: 4.406 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01358/0.7442, allocations: 11 MB / 0.6374 GB, free: 10.85 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.7443, allocations: 0 / 0.6374 GB, free: 10.85 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.7443, allocations: 0 / 0.6374 GB, free: 10.85 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005955/0.7449, allocations: 0 / 0.6374 GB, free: 10.85 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02004/0.765, allocations: 8.43 MB / 0.6456 GB, free: 3.039 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.765, allocations: 8.031 kB / 0.6457 GB, free: 3.031 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04318/0.8082, allocations: 5.398 MB / 0.6509 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02076/0.829, allocations: 8.218 MB / 0.6589 GB, free: 7.633 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005305/0.8296, allocations: 445 kB / 0.6594 GB, free: 7.391 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002849/0.8325, allocations: 0.6072 MB / 0.66 GB, free: 6.988 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3561/1.189, allocations: 17.15 MB / 0.6767 GB, free: 206.3 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000471/1.189, allocations: 100.1 kB / 0.6768 GB, free: 206.2 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/1.19, allocations: 277.6 kB / 0.6771 GB, free: 206.1 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00528/1.196, allocations: 2.864 MB / 0.6799 GB, free: 205.3 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/1.223, allocations: 14.05 MB / 0.6936 GB, free: 198.6 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.07124/1.294, allocations: 69.46 MB / 0.7614 GB, free: 129.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01681/1.311, allocations: 7.474 MB / 0.7687 GB, free: 122 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004729/1.316, allocations: 4.461 MB / 0.7731 GB, free: 117.5 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01582/1.331, allocations: 12.75 MB / 0.7855 GB, free: 104.5 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/1.331, allocations: 72.52 kB / 0.7856 GB, free: 104.5 MB / 490.8 MB Notification: Performance of pre-optimization done (n=293): time 5.49e-06/1.331, allocations: 0 / 0.7856 GB, free: 104.5 MB / 490.8 MB Notification: Performance of matching and sorting (n=365): time 0.1307/1.462, allocations: 43.93 MB / 0.8285 GB, free: 60.67 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/1.462, allocations: 398.3 kB / 0.8289 GB, free: 60.2 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009059/1.471, allocations: 7.342 MB / 0.8361 GB, free: 52.88 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008537/1.472, allocations: 81.7 kB / 0.8361 GB, free: 52.8 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002836/1.475, allocations: 5.23 MB / 0.8412 GB, free: 47.57 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001665/1.477, allocations: 1.349 MB / 0.8426 GB, free: 46.23 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000474/1.477, allocations: 191 kB / 0.8427 GB, free: 46.04 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003466/1.478, allocations: 0.7108 MB / 0.8434 GB, free: 45.32 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005181/1.483, allocations: 4.247 MB / 0.8476 GB, free: 41.07 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006994/1.49, allocations: 9.152 MB / 0.8565 GB, free: 29.54 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007892/1.498, allocations: 6.079 MB / 0.8625 GB, free: 23.45 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.1e-05/1.498, allocations: 48 kB / 0.8625 GB, free: 23.4 MB / 490.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03472/1.533, allocations: 17.9 MB / 0.88 GB, free: 5.449 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.533, allocations: 76.94 kB / 0.8801 GB, free: 5.375 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/1.533, allocations: 168 kB / 0.8802 GB, free: 5.211 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2167/1.75, allocations: 5.319 MB / 0.8854 GB, free: 184.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006865/1.757, allocations: 2.007 MB / 0.8874 GB, free: 184.6 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03866/1.795, allocations: 29.03 MB / 0.9157 GB, free: 172.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009167/1.804, allocations: 0.5592 MB / 0.9163 GB, free: 172.7 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001939/1.806, allocations: 0.5179 MB / 0.9168 GB, free: 172.6 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1102): * Single equations (assignments): 1096 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00741/1.814, allocations: 3.618 MB / 0.9203 GB, free: 171.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00171/1.816, allocations: 0.664 MB / 0.921 GB, free: 171.1 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02064/1.836, allocations: 11.24 MB / 0.9319 GB, free: 165.8 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.554e-05/1.836, allocations: 37.17 kB / 0.932 GB, free: 165.8 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.972e-05/1.836, allocations: 20 kB / 0.932 GB, free: 165.8 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.302e-05/1.836, allocations: 15.94 kB / 0.932 GB, free: 165.7 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03608/1.873, allocations: 22.14 MB / 0.9536 GB, free: 143.6 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/1.873, allocations: 10.12 kB / 0.9536 GB, free: 143.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/1.875, allocations: 453.8 kB / 0.9541 GB, free: 143.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01331/1.888, allocations: 5.033 MB / 0.959 GB, free: 138.1 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005518/1.889, allocations: 67.94 kB / 0.959 GB, free: 138 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03913/1.928, allocations: 28.4 MB / 0.9868 GB, free: 109.5 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/1.928, allocations: 15.12 kB / 0.9868 GB, free: 109.5 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03623/1.964, allocations: 16.45 MB / 1.003 GB, free: 93.1 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003736/1.968, allocations: 1.344 MB / 1.004 GB, free: 91.74 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001994/1.97, allocations: 75.94 kB / 1.004 GB, free: 91.66 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004271/1.974, allocations: 271.5 kB / 1.004 GB, free: 91.4 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008993/1.975, allocations: 268.2 kB / 1.005 GB, free: 91.14 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002754/1.975, allocations: 100 kB / 1.005 GB, free: 91.05 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006585/1.982, allocations: 4.679 MB / 1.009 GB, free: 86.4 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.653e-06/1.982, allocations: 0 / 1.009 GB, free: 86.4 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.00872/1.991, allocations: 2.192 MB / 1.012 GB, free: 84.22 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(5,72.0%) 96,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006343/1.991, allocations: 220.5 kB / 1.012 GB, free: 84.01 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01483/2.006, allocations: 10.74 MB / 1.022 GB, free: 73.29 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/2.006, allocations: 2.188 kB / 1.022 GB, free: 73.29 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006135/2.012, allocations: 4.463 MB / 1.027 GB, free: 68.79 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006469/2.019, allocations: 0.9841 MB / 1.028 GB, free: 67.82 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03051/2.049, allocations: 22.91 MB / 1.05 GB, free: 45.05 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005444/2.055, allocations: 5.678 MB / 1.056 GB, free: 39.32 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/2.057, allocations: 475.4 kB / 1.056 GB, free: 38.86 MB / 490.8 MB Notification: Performance of SimCode: time 9.62e-07/2.057, allocations: 0 / 1.056 GB, free: 38.86 MB / 490.8 MB Notification: Performance of Templates: time 0.6036/2.66, allocations: 212.3 MB / 1.263 GB, free: 167.5 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches