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.001648/0.001648, allocations: 115.5 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 214.8 kB / 19.41 MB, free: 3.66 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.433/1.433, allocations: 227.7 MB / 247.9 MB, free: 10.27 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.001931/0.001931, allocations: 67.89 kB / 359.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2554, allocations: 50.54 MB / 410.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02042/0.2758, allocations: 18.09 MB / 428.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01319/0.289, allocations: 6.044 MB / 434.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.2922, allocations: 139.6 kB / 434.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01143/0.3036, allocations: 6.305 MB / 440.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007193/0.3108, allocations: 2.883 MB / 443.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004769/0.3156, allocations: 2.284 MB / 446 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0132/0.3288, allocations: 9.692 MB / 455.6 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008371/0.3372, allocations: 6.89 MB / 462.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005021/0.3422, allocations: 3.214 MB / 465.7 MB, free: 9.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006034/0.3482, allocations: 4.164 MB / 469.9 MB, free: 5.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001998/0.3502, allocations: 0.7148 MB / 470.6 MB, free: 4.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004208/0.3544, allocations: 1.896 MB / 472.5 MB, free: 2.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004437/0.3589, allocations: 3.877 MB / 476.4 MB, free: 15.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005626/0.3645, allocations: 4.13 MB / 480.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01643/0.3809, allocations: 13.22 MB / 493.8 MB, free: 13.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3809, allocations: 0 / 493.8 MB, free: 13.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3809, allocations: 0 / 493.8 MB, free: 13.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004413/0.3814, allocations: 0 / 493.8 MB, free: 13.59 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.02309/0.4045, allocations: 9.137 MB / 0.4911 GB, free: 4.355 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.4045, allocations: 12.03 kB / 0.4911 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04789/0.4524, allocations: 4.895 MB / 0.4959 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01725/0.4697, allocations: 6.41 MB / 0.5022 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004767/0.4701, allocations: 435.6 kB / 0.5026 GB, free: 8.527 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002761/0.4729, allocations: 0.5857 MB / 0.5031 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03692/0.5098, allocations: 17.04 MB / 0.5198 GB, free: 5.953 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002764/0.5101, allocations: 83.41 kB / 0.5199 GB, free: 5.871 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009902/0.5111, allocations: 271.8 kB / 0.5201 GB, free: 5.605 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005001/0.5161, allocations: 2.658 MB / 0.5227 GB, free: 2.945 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03167/0.5478, allocations: 14.79 MB / 0.5372 GB, free: 4.129 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4969/1.045, allocations: 64.34 MB / 0.6 GB, free: 67.42 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02136/1.066, allocations: 8.492 MB / 0.6083 GB, free: 58.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004606/1.071, allocations: 4.71 MB / 0.6129 GB, free: 54.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02444/1.095, allocations: 18.65 MB / 0.6311 GB, free: 35.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/1.095, allocations: 64.5 kB / 0.6312 GB, free: 35.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.041e-06/1.095, allocations: 0 / 0.6312 GB, free: 35.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2629/1.358, allocations: 74.29 MB / 0.7037 GB, free: 9.387 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002489/1.358, allocations: 372.6 kB / 0.7041 GB, free: 8.941 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009995/1.368, allocations: 6.378 MB / 0.7103 GB, free: 2.668 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001179/1.369, allocations: 85.7 kB / 0.7104 GB, free: 2.578 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004511/1.374, allocations: 4.934 MB / 0.7152 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002187/1.376, allocations: 1.43 MB / 0.7166 GB, free: 12.41 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00352/1.38, allocations: 1.999 MB / 0.7185 GB, free: 10.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001359/1.38, allocations: 304.9 kB / 0.7188 GB, free: 10.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009352/1.389, allocations: 5.988 MB / 0.7247 GB, free: 4.105 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01464/1.404, allocations: 11.03 MB / 0.7354 GB, free: 6.629 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2553/1.659, allocations: 17.95 MB / 0.753 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/1.659, allocations: 50.38 kB / 0.753 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04136/1.701, allocations: 23.29 MB / 0.7758 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/1.701, allocations: 76.59 kB / 0.7758 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/1.701, allocations: 177.3 kB / 0.776 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02139/1.722, allocations: 7.448 MB / 0.7833 GB, free: 156 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007395/1.73, allocations: 2.183 MB / 0.7854 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0424/1.772, allocations: 38.11 MB / 0.8226 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008866/1.781, allocations: 0.7467 MB / 0.8234 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.782, allocations: 0.5309 MB / 0.8239 GB, free: 114.3 MB / 0.5294 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.005187/1.788, allocations: 3.429 MB / 0.8272 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/1.789, allocations: 0.6032 MB / 0.8278 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03132/1.82, allocations: 16.88 MB / 0.8443 GB, free: 93.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.092e-05/1.82, allocations: 48 kB / 0.8443 GB, free: 93.72 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.376e-05/1.82, allocations: 16 kB / 0.8444 GB, free: 93.71 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.35e-05/1.82, allocations: 19.92 kB / 0.8444 GB, free: 93.69 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05176/1.872, allocations: 31.96 MB / 0.8756 GB, free: 61.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.569e-05/1.872, allocations: 4.031 kB / 0.8756 GB, free: 61.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003208/1.875, allocations: 0.6084 MB / 0.8762 GB, free: 60.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01978/1.895, allocations: 7.014 MB / 0.883 GB, free: 53.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000863/1.896, allocations: 63.98 kB / 0.8831 GB, free: 53.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03987/1.936, allocations: 36.32 MB / 0.9186 GB, free: 17 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.936, allocations: 7.938 kB / 0.9186 GB, free: 16.99 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2709/2.207, allocations: 24.55 MB / 0.9425 GB, free: 181.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/2.209, allocations: 0.6563 MB / 0.9432 GB, free: 181.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001519/2.21, allocations: 62.88 kB / 0.9432 GB, free: 181.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004585/2.215, allocations: 446.2 kB / 0.9437 GB, free: 181.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.216, allocations: 252 kB / 0.9439 GB, free: 181.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003415/2.216, allocations: 96.83 kB / 0.944 GB, free: 181.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005264/2.221, allocations: 4.046 MB / 0.9479 GB, free: 181.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/2.221, allocations: 0 / 0.9479 GB, free: 181.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008384/2.23, allocations: 2.279 MB / 0.9502 GB, free: 181.5 MB / 0.545 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.001086/2.231, allocations: 296.4 kB / 0.9505 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01927/2.25, allocations: 14.19 MB / 0.9643 GB, free: 176.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/2.25, allocations: 2.688 kB / 0.9643 GB, free: 176.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009927/2.26, allocations: 6.162 MB / 0.9703 GB, free: 174 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006096/2.266, allocations: 0.8822 MB / 0.9712 GB, free: 173.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02972/2.296, allocations: 20.15 MB / 0.9909 GB, free: 158.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006165/2.302, allocations: 5.268 MB / 0.996 GB, free: 154.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006022/2.308, allocations: 3.013 MB / 0.999 GB, free: 152.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/2.31, allocations: 382.7 kB / 0.9993 GB, free: 152.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/2.31, allocations: 0 / 0.9993 GB, free: 152.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1445/2.454, allocations: 109.3 MB / 1.106 GB, free: 45.33 MB / 0.545 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/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