Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007619/0.0007619, allocations: 96.55 kB / 17.3 MB, free: 6.391 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.0008038/0.0008041, allocations: 176.1 kB / 18.2 MB, free: 5.551 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.481/1.481, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005359/0.0005359, allocations: 12.38 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1296, allocations: 47.59 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2982/0.4278, allocations: 79.49 MB / 408.5 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04307/0.4709, allocations: 16.55 MB / 425 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0256/0.4966, allocations: 370.6 kB / 425.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00354/0.5002, allocations: 0.6757 MB / 426 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009946/0.5102, allocations: 2.708 MB / 428.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004264/0.5144, allocations: 1.35 MB / 430.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01845/0.5329, allocations: 12.68 MB / 442.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01921/0.5522, allocations: 11.92 MB / 454.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006154/0.5584, allocations: 2.237 MB / 456.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007446/0.5659, allocations: 3.687 MB / 460.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.5677, allocations: 252 kB / 460.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004899/0.5726, allocations: 1.521 MB / 462.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004642/0.5773, allocations: 3.269 MB / 465.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007814/0.5852, allocations: 3.488 MB / 469.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01941/0.6046, allocations: 12.33 MB / 481.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.6047, allocations: 0 / 481.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6047, allocations: 0 / 481.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005464/0.6052, allocations: 0 / 481.5 MB, free: 13.96 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.0221/0.6274, allocations: 7.324 MB / 488.8 MB, free: 6.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.6274, allocations: 16.03 kB / 488.8 MB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04938/0.6768, allocations: 4.965 MB / 493.8 MB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01914/0.696, allocations: 6.572 MB / 0.4886 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/0.6964, allocations: 439.7 kB / 0.4891 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003193/0.6996, allocations: 0.578 MB / 0.4896 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03286/0.7325, allocations: 17.12 MB / 0.5063 GB, free: 7.828 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002766/0.7328, allocations: 83.27 kB / 0.5064 GB, free: 7.746 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008042/0.7336, allocations: 267.8 kB / 0.5067 GB, free: 7.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004855/0.7385, allocations: 2.658 MB / 0.5093 GB, free: 4.824 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03104/0.7696, allocations: 14.84 MB / 0.5238 GB, free: 5.965 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4544/1.224, allocations: 64.62 MB / 0.5869 GB, free: 101.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02139/1.246, allocations: 8.841 MB / 0.5955 GB, free: 93.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005481/1.251, allocations: 5.058 MB / 0.6004 GB, free: 88.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0245/1.276, allocations: 18.63 MB / 0.6186 GB, free: 69.7 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/1.276, allocations: 68.5 kB / 0.6187 GB, free: 69.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 7.574e-06/1.276, allocations: 4 kB / 0.6187 GB, free: 69.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.488/1.764, allocations: 75.13 MB / 0.6921 GB, free: 138.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/1.764, allocations: 376.8 kB / 0.6924 GB, free: 138.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0124/1.776, allocations: 6.419 MB / 0.6987 GB, free: 136.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001273/1.778, allocations: 83.55 kB / 0.6988 GB, free: 136.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003874/1.781, allocations: 4.764 MB / 0.7034 GB, free: 133.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002558/1.784, allocations: 1.378 MB / 0.7048 GB, free: 132.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002116/1.786, allocations: 0.8098 MB / 0.7056 GB, free: 132 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.01e-05/1.786, allocations: 301.1 kB / 0.7058 GB, free: 131.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008285/1.795, allocations: 5.995 MB / 0.7117 GB, free: 129.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01145/1.806, allocations: 11.02 MB / 0.7225 GB, free: 119.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01898/1.825, allocations: 17.96 MB / 0.74 GB, free: 104.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002054/1.825, allocations: 52 kB / 0.7401 GB, free: 104.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04729/1.873, allocations: 23.37 MB / 0.7629 GB, free: 80.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.873, allocations: 84.22 kB / 0.763 GB, free: 80.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000213/1.873, allocations: 172 kB / 0.7631 GB, free: 80.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02223/1.895, allocations: 7.479 MB / 0.7704 GB, free: 73.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007625/1.903, allocations: 2.191 MB / 0.7726 GB, free: 71.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04139/1.944, allocations: 35.64 MB / 0.8074 GB, free: 34.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/1.955, allocations: 0.7449 MB / 0.8081 GB, free: 34.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002106/1.957, allocations: 0.5312 MB / 0.8086 GB, free: 33.7 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007745/1.964, allocations: 3.438 MB / 0.812 GB, free: 30.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001599/1.966, allocations: 0.5785 MB / 0.8125 GB, free: 29.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03242/1.999, allocations: 16.97 MB / 0.8291 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.523e-05/1.999, allocations: 53.39 kB / 0.8292 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.86e-05/1.999, allocations: 19.84 kB / 0.8292 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.473e-05/1.999, allocations: 19.94 kB / 0.8292 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2858/2.285, allocations: 32.18 MB / 0.8606 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-05/2.285, allocations: 3.719 kB / 0.8606 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003441/2.288, allocations: 0.6077 MB / 0.8612 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0219/2.31, allocations: 7.148 MB / 0.8682 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001198/2.311, allocations: 66.92 kB / 0.8683 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04163/2.353, allocations: 33.9 MB / 0.9014 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/2.353, allocations: 4 kB / 0.9014 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04179/2.395, allocations: 24.62 MB / 0.9254 GB, free: 85.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006307/2.401, allocations: 1.666 MB / 0.927 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002358/2.404, allocations: 61.17 kB / 0.9271 GB, free: 83.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00628/2.41, allocations: 451.2 kB / 0.9275 GB, free: 83.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001465/2.411, allocations: 252.4 kB / 0.9278 GB, free: 83.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003563/2.412, allocations: 93.16 kB / 0.9279 GB, free: 83.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007082/2.419, allocations: 4.088 MB / 0.9319 GB, free: 78.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.212e-06/2.419, allocations: 2 kB / 0.9319 GB, free: 78.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01107/2.43, allocations: 2.29 MB / 0.9341 GB, free: 76.69 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/2.431, allocations: 277.2 kB / 0.9344 GB, free: 76.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02152/2.453, allocations: 14.85 MB / 0.9489 GB, free: 61.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/2.453, allocations: 0 / 0.9489 GB, free: 61.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01007/2.463, allocations: 6.707 MB / 0.9554 GB, free: 54.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00911/2.472, allocations: 0.8404 MB / 0.9562 GB, free: 54.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03521/2.508, allocations: 23.66 MB / 0.9793 GB, free: 30.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005498/2.513, allocations: 5.287 MB / 0.9845 GB, free: 24.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007095/2.52, allocations: 3.027 MB / 0.9874 GB, free: 21.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/2.522, allocations: 383.4 kB / 0.9878 GB, free: 21.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/2.522, allocations: 0 / 0.9878 GB, free: 21.57 MB / 446.1 MB Notification: Performance of Templates: time 0.3641/2.886, allocations: 106.2 MB / 1.092 GB, free: 69.39 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches