Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007141/0.0007143, allocations: 93.92 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000185/0.000185, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1787, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.07188/0.2506, allocations: 93.84 MB / 0.4896 GB, free: 13.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2115/0.4621, allocations: 19.13 MB / 0.5083 GB, free: 224 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01503/0.4772, allocations: 469.1 kB / 0.5087 GB, free: 224 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.4893, allocations: 4.906 MB / 0.5135 GB, free: 168 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03132/0.5206, allocations: 14.56 MB / 0.5277 GB, free: 12.57 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00526/0.5259, allocations: 1.399 MB / 0.5291 GB, free: 12.2 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3723/0.8982, allocations: 179.2 MB / 0.7041 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01125/0.9095, allocations: 8.798 MB / 0.7127 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005084/0.9146, allocations: 2.925 MB / 0.7155 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005804/0.9205, allocations: 4.422 MB / 0.7198 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.9218, allocations: 276.7 kB / 0.7201 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003019/0.9248, allocations: 1.119 MB / 0.7212 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.003371/0.9282, allocations: 3.686 MB / 0.7248 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002123/0.9304, allocations: 1.56 MB / 0.7263 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.008432/0.9388, allocations: 10.58 MB / 0.7366 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.9388, allocations: 1.594 kB / 0.7367 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.615e-06/0.9388, allocations: 0 / 0.7367 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004439/0.9393, allocations: 0 / 0.7367 GB, free: 111.3 MB / 0.4948 GB 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.01581/0.9551, allocations: 8.121 MB / 0.7446 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.9552, allocations: 13.67 kB / 0.7446 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03886/0.994, allocations: 5.351 MB / 0.7498 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/1.009, allocations: 7.565 MB / 0.7572 GB, free: 93.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/1.009, allocations: 432.5 kB / 0.7576 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001605/1.011, allocations: 0.5814 MB / 0.7582 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02319/1.034, allocations: 16.58 MB / 0.7744 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002409/1.034, allocations: 96.61 kB / 0.7745 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006833/1.035, allocations: 269.7 kB / 0.7747 GB, free: 79.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003382/1.038, allocations: 2.759 MB / 0.7774 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.023/1.061, allocations: 13.64 MB / 0.7907 GB, free: 67.74 MB / 0.4948 GB 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.06451/1.126, allocations: 68.09 MB / 0.8572 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01658/1.142, allocations: 7.926 MB / 0.865 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005578/1.148, allocations: 4.503 MB / 0.8694 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3122/1.46, allocations: 12.41 MB / 0.8815 GB, free: 214.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/1.46, allocations: 69.75 kB / 0.8816 GB, free: 214.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=280): time 5.791e-06/1.46, allocations: 1.562 kB / 0.8816 GB, free: 214.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.1481/1.609, allocations: 51.01 MB / 0.9314 GB, free: 185.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/1.609, allocations: 405.9 kB / 0.9318 GB, free: 184.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007554/1.616, allocations: 7.075 MB / 0.9387 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000629/1.617, allocations: 77.7 kB / 0.9387 GB, free: 177.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002065/1.619, allocations: 5.018 MB / 0.9436 GB, free: 172.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009841/1.62, allocations: 1.26 MB / 0.9449 GB, free: 171.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004103/1.62, allocations: 184.5 kB / 0.9451 GB, free: 171.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002863/1.621, allocations: 0.6903 MB / 0.9457 GB, free: 170.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004782/1.625, allocations: 4.511 MB / 0.9501 GB, free: 165.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006009/1.631, allocations: 9.231 MB / 0.9591 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006467/1.638, allocations: 6.259 MB / 0.9653 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.317e-05/1.638, allocations: 48 kB / 0.9653 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03072/1.669, allocations: 19.69 MB / 0.9845 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.696e-05/1.669, allocations: 76 kB / 0.9846 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/1.669, allocations: 160 kB / 0.9848 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01698/1.686, allocations: 7.039 MB / 0.9916 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005226/1.691, allocations: 1.922 MB / 0.9935 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03517/1.726, allocations: 33.22 MB / 1.026 GB, free: 85.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006942/1.733, allocations: 0.589 MB / 1.027 GB, free: 84.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/1.735, allocations: 497.2 kB / 1.027 GB, free: 84.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * 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 (1048): * Single equations (assignments): 1042 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005376/1.74, allocations: 3.484 MB / 1.03 GB, free: 81 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/1.741, allocations: 0.6325 MB / 1.031 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/1.765, allocations: 13.3 MB / 1.044 GB, free: 66.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.744e-05/1.765, allocations: 36 kB / 1.044 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.021e-05/1.765, allocations: 23.17 kB / 1.044 GB, free: 66.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.892e-05/1.765, allocations: 15.94 kB / 1.044 GB, free: 66.92 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0408/1.806, allocations: 26.7 MB / 1.07 GB, free: 39.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.482e-05/1.806, allocations: 8 kB / 1.07 GB, free: 39.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/1.808, allocations: 415.4 kB / 1.071 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01726/1.825, allocations: 6.679 MB / 1.077 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005107/1.826, allocations: 63.98 kB / 1.077 GB, free: 32.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2145/2.04, allocations: 31.93 MB / 1.108 GB, free: 189.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/2.04, allocations: 14.31 kB / 1.108 GB, free: 189.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/2.069, allocations: 18.74 MB / 1.127 GB, free: 182.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/2.07, allocations: 0.696 MB / 1.127 GB, free: 182.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000997/2.071, allocations: 65.97 kB / 1.127 GB, free: 182.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002894/2.074, allocations: 312.5 kB / 1.128 GB, free: 182.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006433/2.075, allocations: 238.1 kB / 1.128 GB, free: 182.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002544/2.075, allocations: 91.03 kB / 1.128 GB, free: 182.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005531/2.081, allocations: 4.517 MB / 1.132 GB, free: 180.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.6e-07/2.081, allocations: 0.5 kB / 1.132 GB, free: 180.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00696/2.088, allocations: 2.141 MB / 1.134 GB, free: 178.3 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.0005983/2.088, allocations: 213.4 kB / 1.135 GB, free: 178.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01413/2.102, allocations: 11.52 MB / 1.146 GB, free: 166.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/2.103, allocations: 4 kB / 1.146 GB, free: 166.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006572/2.109, allocations: 4.981 MB / 1.151 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004904/2.114, allocations: 0.9386 MB / 1.152 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02767/2.142, allocations: 22.95 MB / 1.174 GB, free: 138 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004528/2.146, allocations: 5.456 MB / 1.179 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001484/2.148, allocations: 444 kB / 1.18 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of SimCode: time 7.31e-07/2.148, allocations: 0 / 1.18 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.3557/2.503, allocations: 205.7 MB / 1.381 GB, free: 117.8 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches