Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 112.9 kB / 17.82 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 208.6 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.523/1.523, allocations: 230.4 MB / 250 MB, free: 9.062 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 63.83 kB / 367.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.318, allocations: 53.3 MB / 420.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0212/0.3392, allocations: 18.1 MB / 438.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01535/0.3545, allocations: 6.06 MB / 444.8 MB, free: 112 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004701/0.3592, allocations: 143.7 kB / 445 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01257/0.3718, allocations: 6.312 MB / 451.3 MB, free: 9.637 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009075/0.3809, allocations: 2.897 MB / 454.2 MB, free: 6.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006921/0.3878, allocations: 2.284 MB / 456.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01899/0.4068, allocations: 9.685 MB / 466.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01256/0.4193, allocations: 6.89 MB / 473 MB, free: 3.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00692/0.4263, allocations: 3.229 MB / 476.3 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007996/0.4343, allocations: 4.456 MB / 480.7 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00245/0.4367, allocations: 0.7148 MB / 481.4 MB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006173/0.4429, allocations: 1.951 MB / 483.4 MB, free: 9.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006546/0.4494, allocations: 3.884 MB / 487.3 MB, free: 5.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009101/0.4585, allocations: 4.127 MB / 491.4 MB, free: 1.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01971/0.4782, allocations: 13.22 MB / 0.4928 GB, free: 4.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/0.4783, allocations: 0 / 0.4928 GB, free: 4.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4783, allocations: 0 / 0.4928 GB, free: 4.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004873/0.4787, allocations: 0 / 0.4928 GB, free: 4.07 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03085/0.5096, allocations: 9.148 MB / 0.5017 GB, free: 10.83 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.445e-05/0.5097, allocations: 12.03 kB / 0.5017 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04459/0.5542, allocations: 4.888 MB / 0.5065 GB, free: 5.918 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0167/0.5709, allocations: 6.422 MB / 0.5128 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004729/0.5714, allocations: 431.7 kB / 0.5132 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002417/0.5738, allocations: 0.5896 MB / 0.5138 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04014/0.614, allocations: 17.04 MB / 0.5304 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004037/0.6144, allocations: 87.41 kB / 0.5305 GB, free: 12.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002005/0.6164, allocations: 263.8 kB / 0.5307 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005144/0.6215, allocations: 2.658 MB / 0.5333 GB, free: 9.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4887/1.11, allocations: 14.77 MB / 0.5478 GB, free: 104.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06442/1.175, allocations: 64.36 MB / 0.6106 GB, free: 50.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02065/1.195, allocations: 8.488 MB / 0.6189 GB, free: 41.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00486/1.2, allocations: 4.712 MB / 0.6235 GB, free: 36.85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02314/1.223, allocations: 18.65 MB / 0.6417 GB, free: 18.22 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.235e-05/1.223, allocations: 60.56 kB / 0.6418 GB, free: 18.15 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.112e-06/1.223, allocations: 0 / 0.6418 GB, free: 18.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2543/1.478, allocations: 74.29 MB / 0.7143 GB, free: 8.188 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002549/1.478, allocations: 380.6 kB / 0.7147 GB, free: 7.734 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01267/1.491, allocations: 6.372 MB / 0.7209 GB, free: 1.465 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/1.492, allocations: 81.7 kB / 0.721 GB, free: 1.379 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00438/1.496, allocations: 4.922 MB / 0.7258 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002682/1.499, allocations: 1.446 MB / 0.7272 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006239/1.505, allocations: 1.983 MB / 0.7291 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001537/1.505, allocations: 304.9 kB / 0.7294 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0155/1.521, allocations: 6 MB / 0.7353 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02254/1.543, allocations: 11.02 MB / 0.746 GB, free: 5.199 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2864/1.83, allocations: 17.96 MB / 0.7636 GB, free: 172.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.83, allocations: 54.44 kB / 0.7636 GB, free: 172.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04054/1.87, allocations: 23.29 MB / 0.7864 GB, free: 165 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.336e-05/1.87, allocations: 77.53 kB / 0.7864 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/1.87, allocations: 174.7 kB / 0.7866 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01991/1.89, allocations: 7.441 MB / 0.7939 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006663/1.897, allocations: 2.187 MB / 0.796 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04152/1.938, allocations: 38.11 MB / 0.8332 GB, free: 121.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008619/1.947, allocations: 0.7425 MB / 0.834 GB, free: 121.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/1.948, allocations: 0.5385 MB / 0.8345 GB, free: 120.6 MB / 0.545 GB 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.004231/1.953, allocations: 3.43 MB / 0.8378 GB, free: 117.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.954, allocations: 0.6015 MB / 0.8384 GB, free: 117 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02742/1.981, allocations: 16.87 MB / 0.8549 GB, free: 100 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.305e-05/1.981, allocations: 47.98 kB / 0.8549 GB, free: 100 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.01e-05/1.981, allocations: 20 kB / 0.855 GB, free: 99.98 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.846e-05/1.981, allocations: 17.91 kB / 0.855 GB, free: 99.96 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04665/2.028, allocations: 31.95 MB / 0.8862 GB, free: 67.72 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.948e-05/2.028, allocations: 7.984 kB / 0.8862 GB, free: 67.71 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002951/2.031, allocations: 0.6006 MB / 0.8868 GB, free: 67.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01841/2.049, allocations: 7.015 MB / 0.8936 GB, free: 60.08 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007798/2.05, allocations: 64 kB / 0.8937 GB, free: 60.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03962/2.09, allocations: 36.31 MB / 0.9292 GB, free: 23.38 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/2.09, allocations: 7.938 kB / 0.9292 GB, free: 23.37 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03923/2.129, allocations: 24.56 MB / 0.9531 GB, free: 14.69 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/2.131, allocations: 0.6543 MB / 0.9538 GB, free: 14.02 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002186/2.133, allocations: 60 kB / 0.9538 GB, free: 13.96 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005224/2.138, allocations: 450.2 kB / 0.9543 GB, free: 13.53 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001626/2.14, allocations: 246.6 kB / 0.9545 GB, free: 13.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2646/2.404, allocations: 95.08 kB / 0.9546 GB, free: 191 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007997/2.412, allocations: 4.047 MB / 0.9586 GB, free: 190.8 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.01e-07/2.412, allocations: 0 / 0.9586 GB, free: 190.8 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01232/2.425, allocations: 2.284 MB / 0.9608 GB, free: 190.8 MB / 0.5607 GB 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.001606/2.426, allocations: 282.1 kB / 0.9611 GB, free: 190.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.02003/2.446, allocations: 14.2 MB / 0.9749 GB, free: 187 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/2.446, allocations: 0 / 0.9749 GB, free: 187 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008566/2.455, allocations: 6.166 MB / 0.9809 GB, free: 184.4 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005145/2.46, allocations: 0.8822 MB / 0.9818 GB, free: 184.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02791/2.488, allocations: 20.14 MB / 1.001 GB, free: 170 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005966/2.494, allocations: 5.26 MB / 1.007 GB, free: 166 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006543/2.501, allocations: 3.016 MB / 1.01 GB, free: 164.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/2.502, allocations: 377.3 kB / 1.01 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.022e-06/2.502, allocations: 0 / 1.01 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.147/2.649, allocations: 109.8 MB / 1.117 GB, free: 56.49 MB / 0.5607 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches