Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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 3.2.3+maint.om/package.mo", uses=false) 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 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 107.5 kB / 18.4 MB, free: 4.699 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.001283/0.001283, allocations: 187.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 56.34 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08447/0.08573, allocations: 46.62 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1881/0.2739, allocations: 23.46 MB / 399.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.2916, allocations: 7.085 MB / 406.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005563/0.2973, allocations: 178.8 kB / 406.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01531/0.3126, allocations: 7.945 MB / 414.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.3237, allocations: 3.6 MB / 418.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.3296, allocations: 2.01 MB / 420.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.3484, allocations: 12.24 MB / 432.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01643/0.3649, allocations: 10.47 MB / 442.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008369/0.3733, allocations: 4.289 MB / 447.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009586/0.3829, allocations: 5.73 MB / 452.8 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003498/0.3865, allocations: 1.004 MB / 453.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006463/0.393, allocations: 2.158 MB / 456 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008096/0.4011, allocations: 5.145 MB / 461.1 MB, free: 10.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01109/0.4122, allocations: 5.422 MB / 466.6 MB, free: 4.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02358/0.4359, allocations: 17.27 MB / 483.8 MB, free: 3.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.984e-06/0.4359, allocations: 3.938 kB / 483.8 MB, free: 3.242 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4359, allocations: 0 / 483.8 MB, free: 3.242 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005833/0.4365, allocations: 0 / 483.8 MB, free: 3.242 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03177/0.4683, allocations: 11.23 MB / 495.1 MB, free: 7.914 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.4684, allocations: 11.89 kB / 495.1 MB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04874/0.5171, allocations: 5.422 MB / 0.4888 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02228/0.5395, allocations: 9.348 MB / 0.4979 GB, free: 9.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007738/0.5403, allocations: 0.5181 MB / 0.4984 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004276/0.5446, allocations: 0.7337 MB / 0.4991 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06022/0.6048, allocations: 19.51 MB / 0.5182 GB, free: 3.207 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004916/0.6054, allocations: 91.17 kB / 0.5183 GB, free: 3.117 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002636/0.608, allocations: 327.8 kB / 0.5186 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006757/0.6148, allocations: 2.817 MB / 0.5213 GB, free: 15.97 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04193/0.6568, allocations: 16.25 MB / 0.5372 GB, free: 15.7 MB / 478.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.2773/0.9341, allocations: 74.17 MB / 0.6096 GB, free: 95.55 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02138/0.9556, allocations: 8.482 MB / 0.6179 GB, free: 91.64 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0058/0.9614, allocations: 4.771 MB / 0.6226 GB, free: 89.05 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02352/0.985, allocations: 15.4 MB / 0.6376 GB, free: 77.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.9851, allocations: 72.59 kB / 0.6377 GB, free: 77.19 MB / 478.1 MB Notification: Performance of pre-optimization done (n=319): time 7.233e-06/0.9851, allocations: 0 / 0.6377 GB, free: 77.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=419): time 0.1651/1.15, allocations: 50.46 MB / 0.687 GB, free: 26.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/1.15, allocations: 402.7 kB / 0.6873 GB, free: 26.22 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.161, allocations: 7.643 MB / 0.6948 GB, free: 18.62 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001066/1.162, allocations: 93.7 kB / 0.6949 GB, free: 18.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003044/1.165, allocations: 5.617 MB / 0.7004 GB, free: 12.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001801/1.167, allocations: 1.532 MB / 0.7019 GB, free: 11.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003176/1.17, allocations: 2.088 MB / 0.7039 GB, free: 9.281 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.609e-05/1.17, allocations: 301.1 kB / 0.7042 GB, free: 8.984 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005904/1.176, allocations: 5.119 MB / 0.7092 GB, free: 3.859 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01082/1.187, allocations: 10.2 MB / 0.7192 GB, free: 7.223 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02136/1.208, allocations: 16.15 MB / 0.7349 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001976/1.208, allocations: 48 kB / 0.735 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.2621/1.47, allocations: 20.86 MB / 0.7554 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001989/1.471, allocations: 80.34 kB / 0.7554 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003094/1.471, allocations: 172.1 kB / 0.7556 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02021/1.491, allocations: 6.451 MB / 0.7619 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007332/1.498, allocations: 2.152 MB / 0.764 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0485/1.547, allocations: 33.57 MB / 0.7968 GB, free: 132.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009079/1.556, allocations: 0.6167 MB / 0.7974 GB, free: 132.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002157/1.558, allocations: 0.5363 MB / 0.7979 GB, free: 131.7 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,124,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008327/1.567, allocations: 4.099 MB / 0.8019 GB, free: 127.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002421/1.569, allocations: 0.697 MB / 0.8026 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03039/1.6, allocations: 13.85 MB / 0.8161 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.579e-05/1.6, allocations: 40 kB / 0.8162 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.05e-05/1.6, allocations: 27.75 kB / 0.8162 GB, free: 113.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-05/1.6, allocations: 23.92 kB / 0.8162 GB, free: 113.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05404/1.654, allocations: 26.99 MB / 0.8426 GB, free: 86.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.676e-05/1.654, allocations: 12.09 kB / 0.8426 GB, free: 86.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002823/1.657, allocations: 0.5538 MB / 0.8431 GB, free: 85.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01809/1.675, allocations: 5.949 MB / 0.8489 GB, free: 79.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001266/1.676, allocations: 85.92 kB / 0.849 GB, free: 79.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04128/1.718, allocations: 30.27 MB / 0.8786 GB, free: 49.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.809e-06/1.718, allocations: 11.94 kB / 0.8786 GB, free: 49.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03852/1.756, allocations: 20 MB / 0.8981 GB, free: 29.24 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004942/1.761, allocations: 1.538 MB / 0.8996 GB, free: 27.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003403/1.765, allocations: 79.98 kB / 0.8997 GB, free: 27.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006014/1.771, allocations: 311.5 kB / 0.9 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001825/1.772, allocations: 298.4 kB / 0.9003 GB, free: 27.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001067/1.774, allocations: 112 kB / 0.9004 GB, free: 26.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.009396/1.783, allocations: 4.898 MB / 0.9052 GB, free: 22.04 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.6e-07/1.783, allocations: 0 / 0.9052 GB, free: 22.04 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01336/1.796, allocations: 2.414 MB / 0.9075 GB, free: 19.64 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,111,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001624/1.798, allocations: 277.4 kB / 0.9078 GB, free: 19.37 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01892/1.817, allocations: 12.44 MB / 0.9199 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.645e-05/1.817, allocations: 4 kB / 0.9199 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.007916/1.825, allocations: 5.106 MB / 0.9249 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009697/1.835, allocations: 1.081 MB / 0.926 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2897/2.124, allocations: 23.16 MB / 0.9486 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01326/2.138, allocations: 6.304 MB / 0.9547 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002503/2.14, allocations: 499.2 kB / 0.9552 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/2.14, allocations: 0 / 0.9552 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.4849/2.625, allocations: 164.8 MB / 1.116 GB, free: 165.4 MB / 0.5137 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_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_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches