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.001203/0.001203, allocations: 106 kB / 18.36 MB, free: 4.605 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.001079/0.00108, allocations: 188.2 kB / 19.3 MB, free: 3.684 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.355/1.355, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001213/0.001213, allocations: 52.34 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08932, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2095/0.2988, allocations: 18.57 MB / 394.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.3141, allocations: 6.143 MB / 400.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005693/0.3199, allocations: 148.3 kB / 400.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.333, allocations: 6.27 MB / 406.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009627/0.3426, allocations: 2.855 MB / 409.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005917/0.3486, allocations: 2.291 MB / 412.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01485/0.3635, allocations: 8.836 MB / 420.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01028/0.3738, allocations: 8.427 MB / 429.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00654/0.3804, allocations: 3.198 MB / 432.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006786/0.3872, allocations: 4.18 MB / 436.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002505/0.3898, allocations: 0.7188 MB / 437.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005243/0.395, allocations: 1.896 MB / 439.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005342/0.4004, allocations: 3.835 MB / 443.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008206/0.4087, allocations: 4.154 MB / 447.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01669/0.4254, allocations: 13.24 MB / 460.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.218e-06/0.4255, allocations: 4 kB / 460.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4255, allocations: 3.938 kB / 460.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004543/0.4259, allocations: 4 kB / 460.6 MB, free: 10.55 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.02409/0.45, allocations: 8.935 MB / 469.5 MB, free: 1.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4501, allocations: 8.031 kB / 469.5 MB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04829/0.4984, allocations: 4.851 MB / 474.3 MB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/0.5151, allocations: 6.697 MB / 481 MB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004002/0.5155, allocations: 435.7 kB / 481.5 MB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002455/0.518, allocations: 0.578 MB / 482 MB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03471/0.5527, allocations: 17.07 MB / 499.1 MB, free: 2.859 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002789/0.553, allocations: 75.28 kB / 499.2 MB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001427/0.5545, allocations: 271.8 kB / 499.5 MB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004802/0.5593, allocations: 2.662 MB / 0.4903 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03106/0.5904, allocations: 14.78 MB / 0.5048 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5103/1.101, allocations: 64.34 MB / 0.5676 GB, free: 109.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02587/1.127, allocations: 8.772 MB / 0.5762 GB, free: 108.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006896/1.134, allocations: 5.064 MB / 0.5811 GB, free: 107.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02556/1.159, allocations: 18.65 MB / 0.5993 GB, free: 99.26 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/1.159, allocations: 71.69 kB / 0.5994 GB, free: 99.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.893e-06/1.159, allocations: 0 / 0.5994 GB, free: 99.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2464/1.406, allocations: 74.09 MB / 0.6718 GB, free: 32.46 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001995/1.406, allocations: 368.6 kB / 0.6721 GB, free: 32.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008532/1.415, allocations: 6.423 MB / 0.6784 GB, free: 25.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001098/1.416, allocations: 81.7 kB / 0.6785 GB, free: 25.51 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002309/1.418, allocations: 4.759 MB / 0.6831 GB, free: 20.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001605/1.42, allocations: 1.374 MB / 0.6844 GB, free: 19.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002853/1.423, allocations: 1.982 MB / 0.6864 GB, free: 17.39 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.732e-05/1.423, allocations: 305.1 kB / 0.6867 GB, free: 17.09 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007038/1.43, allocations: 5.992 MB / 0.6925 GB, free: 11.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01105/1.441, allocations: 11.02 MB / 0.7033 GB, free: 13.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02322/1.464, allocations: 17.97 MB / 0.7208 GB, free: 9.367 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001625/1.464, allocations: 52 kB / 0.7209 GB, free: 9.316 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04983/1.514, allocations: 23.34 MB / 0.7437 GB, free: 1.93 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.514, allocations: 80.03 kB / 0.7437 GB, free: 1.852 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001932/1.514, allocations: 172 kB / 0.7439 GB, free: 1.684 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2315/1.746, allocations: 7.447 MB / 0.7512 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008362/1.754, allocations: 2.186 MB / 0.7533 GB, free: 173.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0473/1.802, allocations: 38.09 MB / 0.7905 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008708/1.81, allocations: 0.748 MB / 0.7912 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/1.812, allocations: 0.519 MB / 0.7918 GB, free: 157.1 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.006327/1.819, allocations: 3.441 MB / 0.7951 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001351/1.82, allocations: 0.5743 MB / 0.7957 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03126/1.851, allocations: 16.95 MB / 0.8122 GB, free: 141.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.168e-05/1.851, allocations: 47.94 kB / 0.8123 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.035e-05/1.851, allocations: 21.97 kB / 0.8123 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.097e-05/1.852, allocations: 15.94 kB / 0.8123 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05159/1.903, allocations: 32.06 MB / 0.8436 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.246e-05/1.903, allocations: 0 / 0.8436 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/1.906, allocations: 0.6045 MB / 0.8442 GB, free: 108.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01928/1.926, allocations: 7.014 MB / 0.8511 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000993/1.927, allocations: 62 kB / 0.8511 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04015/1.967, allocations: 36.3 MB / 0.8866 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.967, allocations: 2.078 kB / 0.8866 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03844/2.005, allocations: 24.62 MB / 0.9106 GB, free: 40.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004129/2.01, allocations: 1.665 MB / 0.9122 GB, free: 38.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001966/2.012, allocations: 60 kB / 0.9123 GB, free: 38.45 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005377/2.017, allocations: 443.3 kB / 0.9127 GB, free: 38.01 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001444/2.018, allocations: 246.6 kB / 0.913 GB, free: 37.77 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004068/2.019, allocations: 94.48 kB / 0.913 GB, free: 37.68 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006146/2.025, allocations: 4.088 MB / 0.917 GB, free: 33.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 6.91e-07/2.025, allocations: 0 / 0.917 GB, free: 33.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01069/2.036, allocations: 2.293 MB / 0.9193 GB, free: 31.31 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.001775/2.038, allocations: 283 kB / 0.9195 GB, free: 31.05 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02253/2.06, allocations: 14.89 MB / 0.9341 GB, free: 16.14 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/2.06, allocations: 4 kB / 0.9341 GB, free: 16.14 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.2352/2.295, allocations: 6.696 MB / 0.9406 GB, free: 174 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007071/2.303, allocations: 0.8888 MB / 0.9415 GB, free: 174 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04302/2.346, allocations: 20.63 MB / 0.9616 GB, free: 166.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009289/2.355, allocations: 5.227 MB / 0.9667 GB, free: 165 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/2.358, allocations: 440.8 kB / 0.9672 GB, free: 165 MB / 0.5138 GB Notification: Performance of SimCode: time 2.555e-06/2.358, allocations: 0 / 0.9672 GB, free: 165 MB / 0.5138 GB Notification: Performance of Templates: time 0.5091/2.867, allocations: 209.1 MB / 1.171 GB, free: 145.4 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/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