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.001128/0.001128, allocations: 104 kB / 17.72 MB, free: 5.242 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.001266/0.001266, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.456/1.456, allocations: 205.1 MB / 224.5 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.001384/0.001385, allocations: 51.92 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1166, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2478/0.3645, allocations: 18.57 MB / 393.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.3811, allocations: 6.143 MB / 399.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006306/0.3874, allocations: 142.7 kB / 400 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01422/0.4017, allocations: 6.283 MB / 406.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.413, allocations: 2.854 MB / 409.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005708/0.4188, allocations: 2.281 MB / 411.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01601/0.4348, allocations: 8.84 MB / 420.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01343/0.4482, allocations: 8.431 MB / 428.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008378/0.4567, allocations: 3.233 MB / 431.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008705/0.4654, allocations: 4.187 MB / 436.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002744/0.4682, allocations: 0.7188 MB / 436.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005518/0.4737, allocations: 1.904 MB / 438.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005313/0.4791, allocations: 3.866 MB / 442.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007683/0.4868, allocations: 4.158 MB / 446.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01884/0.5056, allocations: 13.24 MB / 460 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.5057, allocations: 0 / 460 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5057, allocations: 0 / 460 MB, free: 10.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004961/0.5062, allocations: 11.98 kB / 460 MB, free: 10.45 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.02575/0.532, allocations: 8.939 MB / 468.9 MB, free: 1.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.532, allocations: 12.03 kB / 469 MB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04749/0.5795, allocations: 4.847 MB / 473.8 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01779/0.5974, allocations: 6.701 MB / 480.5 MB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003845/0.5978, allocations: 435.7 kB / 480.9 MB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002585/0.6004, allocations: 0.578 MB / 481.5 MB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03924/0.6396, allocations: 17.06 MB / 498.6 MB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004492/0.6401, allocations: 83.27 kB / 498.7 MB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001992/0.6421, allocations: 263.8 kB / 498.9 MB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005222/0.6474, allocations: 2.662 MB / 0.4898 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03376/0.6811, allocations: 14.79 MB / 0.5043 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6361/1.317, allocations: 64.34 MB / 0.5671 GB, free: 109.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02608/1.343, allocations: 8.773 MB / 0.5757 GB, free: 108.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006826/1.35, allocations: 5.069 MB / 0.5806 GB, free: 107.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02686/1.377, allocations: 18.64 MB / 0.5988 GB, free: 99.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.904e-05/1.377, allocations: 67.22 kB / 0.5989 GB, free: 99.12 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.851e-06/1.377, allocations: 0 / 0.5989 GB, free: 99.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2465/1.624, allocations: 74.08 MB / 0.6712 GB, free: 32.43 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/1.624, allocations: 372.6 kB / 0.6716 GB, free: 31.99 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008471/1.632, allocations: 6.42 MB / 0.6778 GB, free: 25.56 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001234/1.634, allocations: 85.7 kB / 0.6779 GB, free: 25.47 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002833/1.637, allocations: 4.757 MB / 0.6826 GB, free: 20.71 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002206/1.639, allocations: 1.381 MB / 0.6839 GB, free: 19.35 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003014/1.642, allocations: 1.978 MB / 0.6859 GB, free: 17.36 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.355e-05/1.642, allocations: 306.1 kB / 0.6861 GB, free: 17.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006609/1.648, allocations: 5.992 MB / 0.692 GB, free: 11.06 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/1.659, allocations: 11.01 MB / 0.7028 GB, free: 13.67 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02664/1.686, allocations: 17.97 MB / 0.7203 GB, free: 9.34 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002325/1.686, allocations: 48 kB / 0.7203 GB, free: 9.293 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0559/1.742, allocations: 23.34 MB / 0.7431 GB, free: 1.902 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003295/1.742, allocations: 80 kB / 0.7432 GB, free: 1.824 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004671/1.743, allocations: 176 kB / 0.7434 GB, free: 1.652 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.338/2.081, allocations: 7.437 MB / 0.7506 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009152/2.09, allocations: 2.191 MB / 0.7528 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05058/2.141, allocations: 38.1 MB / 0.79 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01117/2.152, allocations: 0.7438 MB / 0.7907 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002415/2.154, allocations: 0.5289 MB / 0.7912 GB, free: 157.2 MB / 0.5138 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.00757/2.162, allocations: 3.434 MB / 0.7946 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/2.163, allocations: 0.5729 MB / 0.7951 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03085/2.194, allocations: 16.95 MB / 0.8117 GB, free: 141.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-05/2.194, allocations: 67.58 kB / 0.8118 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.663e-05/2.194, allocations: 16 kB / 0.8118 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.66e-05/2.194, allocations: 15.94 kB / 0.8118 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05234/2.247, allocations: 32.05 MB / 0.8431 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.812e-05/2.247, allocations: 4 kB / 0.8431 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003252/2.25, allocations: 0.6006 MB / 0.8437 GB, free: 108.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01963/2.27, allocations: 7.016 MB / 0.8505 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008559/2.271, allocations: 60 kB / 0.8506 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0435/2.314, allocations: 36.31 MB / 0.8861 GB, free: 64.79 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/2.314, allocations: 0 / 0.8861 GB, free: 64.79 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04117/2.355, allocations: 24.62 MB / 0.9101 GB, free: 40.15 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004809/2.36, allocations: 1.657 MB / 0.9117 GB, free: 38.46 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/2.362, allocations: 63.98 kB / 0.9118 GB, free: 38.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005341/2.368, allocations: 443.3 kB / 0.9122 GB, free: 37.97 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001519/2.369, allocations: 249.4 kB / 0.9124 GB, free: 37.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006389/2.37, allocations: 91.98 kB / 0.9125 GB, free: 37.64 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006467/2.376, allocations: 4.088 MB / 0.9165 GB, free: 33.55 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.81e-07/2.376, allocations: 0 / 0.9165 GB, free: 33.55 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01038/2.387, allocations: 2.29 MB / 0.9187 GB, free: 31.27 MB / 0.5138 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.002118/2.389, allocations: 280.8 kB / 0.919 GB, free: 31.01 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02078/2.41, allocations: 14.89 MB / 0.9336 GB, free: 16.09 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.41, allocations: 4.766 kB / 0.9336 GB, free: 16.09 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.2343/2.644, allocations: 6.691 MB / 0.9401 GB, free: 173.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00592/2.65, allocations: 0.8893 MB / 0.941 GB, free: 173.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03781/2.688, allocations: 20 MB / 0.9605 GB, free: 167.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009842/2.698, allocations: 5.283 MB / 0.9657 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007521/2.705, allocations: 3.025 MB / 0.9686 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00209/2.708, allocations: 384.2 kB / 0.969 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of SimCode: time 5.31e-07/2.708, allocations: 0.6562 kB / 0.969 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.1392/2.847, allocations: 108.8 MB / 1.075 GB, free: 64.46 MB / 0.5138 GB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches