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.001169/0.001169, allocations: 101.6 kB / 17.72 MB, free: 5.371 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.001233/0.001233, allocations: 188.1 kB / 18.66 MB, free: 4.445 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.525/1.525, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.00136/0.00136, allocations: 47.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, 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.3167/0.4324, allocations: 18.57 MB / 393.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02603/0.4585, allocations: 6.142 MB / 399.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009607/0.4682, allocations: 147.7 kB / 400 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02189/0.4902, allocations: 6.28 MB / 406.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01543/0.5057, allocations: 2.856 MB / 409.1 MB, free: 9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008211/0.5139, allocations: 2.288 MB / 411.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02394/0.5379, allocations: 8.836 MB / 420.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02064/0.5586, allocations: 8.428 MB / 428.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/0.5695, allocations: 3.229 MB / 431.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01132/0.5809, allocations: 4.195 MB / 436.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003077/0.584, allocations: 0.7148 MB / 436.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006553/0.5905, allocations: 1.904 MB / 438.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006706/0.5973, allocations: 3.862 MB / 442.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009827/0.6072, allocations: 4.158 MB / 446.8 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02143/0.6286, allocations: 13.24 MB / 460 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.6287, allocations: 0 / 460 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6287, allocations: 11.88 kB / 460 MB, free: 10.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006863/0.6294, allocations: 0 / 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.02829/0.6577, allocations: 8.946 MB / 469 MB, free: 1.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.6577, allocations: 8.031 kB / 469 MB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05/0.7077, allocations: 4.851 MB / 473.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01751/0.7253, allocations: 6.697 MB / 480.5 MB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/0.7257, allocations: 439.7 kB / 480.9 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/0.728, allocations: 0.5741 MB / 481.5 MB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0361/0.7641, allocations: 17.07 MB / 498.6 MB, free: 2.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003258/0.7645, allocations: 79.27 kB / 498.7 MB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001508/0.766, allocations: 267.8 kB / 498.9 MB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004426/0.7705, allocations: 2.662 MB / 0.4898 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0327/0.8032, allocations: 14.78 MB / 0.5043 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3984/1.202, allocations: 64.35 MB / 0.5671 GB, free: 111 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/1.227, allocations: 8.775 MB / 0.5757 GB, free: 110.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007234/1.234, allocations: 5.066 MB / 0.5806 GB, free: 109.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02936/1.264, allocations: 18.64 MB / 0.5988 GB, free: 100.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/1.264, allocations: 71.05 kB / 0.5989 GB, free: 100.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.451e-06/1.264, allocations: 3.969 kB / 0.5989 GB, free: 100.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2488/1.513, allocations: 74.07 MB / 0.6712 GB, free: 34.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.513, allocations: 376.2 kB / 0.6716 GB, free: 33.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007783/1.521, allocations: 6.423 MB / 0.6779 GB, free: 27.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.522, allocations: 85.7 kB / 0.6779 GB, free: 27.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002234/1.524, allocations: 4.756 MB / 0.6826 GB, free: 22.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/1.526, allocations: 1.387 MB / 0.6839 GB, free: 21.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002835/1.529, allocations: 1.977 MB / 0.6859 GB, free: 19.11 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.122e-05/1.529, allocations: 301.1 kB / 0.6862 GB, free: 18.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006807/1.535, allocations: 6 MB / 0.692 GB, free: 12.81 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009924/1.545, allocations: 11.01 MB / 0.7028 GB, free: 15.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02284/1.568, allocations: 17.96 MB / 0.7203 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001658/1.569, allocations: 48 kB / 0.7204 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05184/1.62, allocations: 23.33 MB / 0.7431 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002445/1.621, allocations: 80 kB / 0.7432 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003936/1.621, allocations: 172 kB / 0.7434 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2368/1.858, allocations: 7.449 MB / 0.7507 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008611/1.867, allocations: 2.189 MB / 0.7528 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04863/1.915, allocations: 38.09 MB / 0.79 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008764/1.924, allocations: 0.7437 MB / 0.7907 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/1.926, allocations: 0.5286 MB / 0.7912 GB, free: 159.2 MB / 0.5137 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.009479/1.936, allocations: 3.43 MB / 0.7946 GB, free: 157.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/1.938, allocations: 0.5718 MB / 0.7951 GB, free: 157.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05537/1.993, allocations: 16.96 MB / 0.8117 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001088/1.993, allocations: 51.94 kB / 0.8118 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.837e-05/1.993, allocations: 19.88 kB / 0.8118 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001125/1.993, allocations: 15.94 kB / 0.8118 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06015/2.054, allocations: 32.05 MB / 0.8431 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.785e-05/2.054, allocations: 7.984 kB / 0.8431 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/2.057, allocations: 0.6006 MB / 0.8437 GB, free: 111.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0204/2.077, allocations: 7.016 MB / 0.8505 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/2.078, allocations: 60.66 kB / 0.8506 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0427/2.121, allocations: 36.3 MB / 0.886 GB, free: 68.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/2.121, allocations: 7.938 kB / 0.886 GB, free: 68.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03995/2.161, allocations: 24.62 MB / 0.9101 GB, free: 43.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004452/2.166, allocations: 1.661 MB / 0.9117 GB, free: 41.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002297/2.168, allocations: 61.88 kB / 0.9118 GB, free: 41.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005522/2.173, allocations: 449.9 kB / 0.9122 GB, free: 41.47 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001587/2.175, allocations: 254.4 kB / 0.9124 GB, free: 41.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000757/2.176, allocations: 92 kB / 0.9125 GB, free: 41.14 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00705/2.183, allocations: 4.084 MB / 0.9165 GB, free: 37.06 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.41e-07/2.183, allocations: 0 / 0.9165 GB, free: 37.06 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01132/2.194, allocations: 2.292 MB / 0.9188 GB, free: 34.77 MB / 0.5137 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.001646/2.196, allocations: 282.2 kB / 0.919 GB, free: 34.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02108/2.217, allocations: 14.88 MB / 0.9336 GB, free: 19.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/2.217, allocations: 0 / 0.9336 GB, free: 19.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.2098/2.427, allocations: 6.709 MB / 0.9401 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006343/2.433, allocations: 0.8838 MB / 0.941 GB, free: 174.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04036/2.474, allocations: 19.99 MB / 0.9605 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009714/2.483, allocations: 5.285 MB / 0.9657 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008138/2.491, allocations: 3.026 MB / 0.9686 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00254/2.494, allocations: 385.8 kB / 0.969 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.793e-06/2.494, allocations: 0 / 0.969 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.1532/2.647, allocations: 110.1 MB / 1.076 GB, free: 68.43 MB / 0.5137 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