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.002653/0.00266, allocations: 188.8 kB / 16.4 MB, free: 5.625 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.576/3.576, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001833/0.001833, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009004/0.0009008, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1586, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.6431/0.8018, allocations: 95.46 MB / 470 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1045/0.9063, allocations: 21.45 MB / 491.5 MB, free: 7.273 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03777/0.9442, allocations: 0.4948 MB / 491.9 MB, free: 6.777 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03055/0.9748, allocations: 4.81 MB / 496.8 MB, free: 1.945 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09397/1.069, allocations: 13.74 MB / 0.4985 GB, free: 4.172 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01498/1.084, allocations: 1.479 MB / 0.5 GB, free: 2.691 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.8394/1.923, allocations: 77.88 MB / 0.576 GB, free: 31.23 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02846/1.952, allocations: 9.248 MB / 0.5851 GB, free: 24.67 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01008/1.962, allocations: 2.546 MB / 0.5875 GB, free: 23.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01063/1.973, allocations: 3.263 MB / 0.5907 GB, free: 20.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00399/1.977, allocations: 292 kB / 0.591 GB, free: 20.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007416/1.984, allocations: 1.107 MB / 0.5921 GB, free: 19.49 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009284/1.994, allocations: 3.552 MB / 0.5956 GB, free: 16.89 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006155/2, allocations: 1.669 MB / 0.5972 GB, free: 16.28 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02548/2.025, allocations: 11.66 MB / 0.6086 GB, free: 6.148 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/2.026, allocations: 1.969 kB / 0.6086 GB, free: 6.148 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.08e-06/2.026, allocations: 0 / 0.6086 GB, free: 6.148 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006452/2.026, allocations: 0 / 0.6086 GB, free: 6.148 MB / 410.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.06178/2.088, allocations: 9.204 MB / 0.6176 GB, free: 13.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.647e-05/2.088, allocations: 12.03 kB / 0.6176 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.9233/3.012, allocations: 29.83 MB / 0.6467 GB, free: 1.738 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05119/3.063, allocations: 9.337 MB / 0.6558 GB, free: 11.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/3.064, allocations: 452 kB / 0.6563 GB, free: 10.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004997/3.069, allocations: 0.6124 MB / 0.6569 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08741/3.156, allocations: 16.99 MB / 0.6734 GB, free: 13.17 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001236/3.158, allocations: 95.8 kB / 0.6735 GB, free: 13.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004946/3.163, allocations: 277 kB / 0.6738 GB, free: 13.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01275/3.176, allocations: 2.863 MB / 0.6766 GB, free: 10.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07304/3.249, allocations: 13.54 MB / 0.6898 GB, free: 1.281 MB / 474.7 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 1.335/4.584, allocations: 68.18 MB / 0.7564 GB, free: 52.36 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04862/4.633, allocations: 7.267 MB / 0.7635 GB, free: 51.63 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05006/4.683, allocations: 12.22 MB / 0.7754 GB, free: 49.11 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001197/4.683, allocations: 74.23 kB / 0.7755 GB, free: 49.07 MB / 490.8 MB Notification: Performance of pre-optimization done (n=293): time 1.928e-05/4.683, allocations: 0 / 0.7755 GB, free: 49.07 MB / 490.8 MB Notification: Performance of matching and sorting (n=365): time 0.3844/5.067, allocations: 42.05 MB / 0.8166 GB, free: 36.36 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/5.068, allocations: 394.3 kB / 0.8169 GB, free: 35.89 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0319/5.1, allocations: 8.152 MB / 0.8249 GB, free: 29.91 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001584/5.101, allocations: 82.64 kB / 0.825 GB, free: 29.87 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007869/5.109, allocations: 5.012 MB / 0.8299 GB, free: 26.25 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003697/5.113, allocations: 1.339 MB / 0.8312 GB, free: 25.12 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002581/5.116, allocations: 174.7 kB / 0.8313 GB, free: 25.08 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001289/5.117, allocations: 0.673 MB / 0.832 GB, free: 24.54 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01579/5.133, allocations: 3.663 MB / 0.8356 GB, free: 22.1 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02155/5.155, allocations: 8.443 MB / 0.8438 GB, free: 12.89 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02084/5.175, allocations: 5.418 MB / 0.8491 GB, free: 9.473 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003813/5.176, allocations: 51.38 kB / 0.8492 GB, free: 9.426 MB / 490.8 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.07978/5.256, allocations: 14.97 MB / 0.8638 GB, free: 15.25 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003537/5.256, allocations: 76.19 kB / 0.8639 GB, free: 15.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005691/5.257, allocations: 172 kB / 0.864 GB, free: 15.01 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03474/5.292, allocations: 4.068 MB / 0.868 GB, free: 11.68 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01886/5.31, allocations: 1.833 MB / 0.8698 GB, free: 10.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1115/5.422, allocations: 26.46 MB / 0.8956 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01874/5.441, allocations: 0.4993 MB / 0.8961 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003426/5.444, allocations: 496 kB / 0.8966 GB, free: 420 kB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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 (988): * Single equations (assignments): 982 * 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.01739/5.462, allocations: 3.617 MB / 0.9001 GB, free: 12.95 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003886/5.466, allocations: 0.6826 MB / 0.9008 GB, free: 12.26 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05286/5.519, allocations: 9.402 MB / 0.91 GB, free: 2.859 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/5.519, allocations: 36 kB / 0.91 GB, free: 2.824 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.114e-05/5.519, allocations: 20.19 kB / 0.91 GB, free: 2.805 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001173/5.519, allocations: 19.92 kB / 0.91 GB, free: 2.785 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5796/6.099, allocations: 20.38 MB / 0.9299 GB, free: 221.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.811e-05/6.099, allocations: 11.47 kB / 0.93 GB, free: 221.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005679/6.105, allocations: 451.9 kB / 0.9304 GB, free: 221.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02967/6.134, allocations: 3.83 MB / 0.9341 GB, free: 220.6 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00143/6.136, allocations: 69.06 kB / 0.9342 GB, free: 220.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09519/6.231, allocations: 25.76 MB / 0.9593 GB, free: 208.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.918e-05/6.231, allocations: 15.84 kB / 0.9594 GB, free: 208.4 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06296/6.294, allocations: 15.65 MB / 0.9746 GB, free: 196.9 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008583/6.303, allocations: 1.32 MB / 0.9759 GB, free: 195.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004269/6.307, allocations: 68 kB / 0.976 GB, free: 195.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0105/6.318, allocations: 233.8 kB / 0.9762 GB, free: 195.6 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002705/6.321, allocations: 257.9 kB / 0.9765 GB, free: 195.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001301/6.322, allocations: 105.3 kB / 0.9766 GB, free: 195.3 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.02054/6.343, allocations: 5.346 MB / 0.9818 GB, free: 190 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.082e-06/6.343, allocations: 0 / 0.9818 GB, free: 190 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02223/6.365, allocations: 2.051 MB / 0.9838 GB, free: 187.9 MB / 0.5262 GB 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002338/6.367, allocations: 242.7 kB / 0.984 GB, free: 187.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03557/6.403, allocations: 9.636 MB / 0.9934 GB, free: 178.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.541e-05/6.403, allocations: 0 / 0.9934 GB, free: 178.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01857/6.422, allocations: 4.34 MB / 0.9977 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01327/6.435, allocations: 1.014 MB / 0.9987 GB, free: 172.8 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08174/6.517, allocations: 22.54 MB / 1.021 GB, free: 150.5 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02006/6.537, allocations: 5.94 MB / 1.026 GB, free: 144.5 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004198/6.541, allocations: 485.4 kB / 1.027 GB, free: 144 MB / 0.5262 GB Notification: Performance of SimCode: time 1.724e-06/6.541, allocations: 4 kB / 1.027 GB, free: 144 MB / 0.5262 GB Notification: Performance of Templates: time 1.109/7.65, allocations: 203.9 MB / 1.226 GB, free: 160.6 MB / 0.5262 GB 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/jenkins1/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