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.001243/0.001243, allocations: 112.5 kB / 17.28 MB, free: 6.199 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.001093/0.001093, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.429/1.429, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001261/0.001261, allocations: 55.92 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3009/0.4035, allocations: 81.44 MB / 408.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04822/0.4517, allocations: 16.52 MB / 424.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02429/0.4761, allocations: 372.4 kB / 425.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01145/0.4876, allocations: 6.069 MB / 431.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009962/0.4976, allocations: 2.666 MB / 433.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006203/0.5038, allocations: 2.189 MB / 436 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01604/0.5199, allocations: 9.261 MB / 445.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01685/0.5368, allocations: 8.863 MB / 454.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007492/0.5443, allocations: 3.299 MB / 457.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008258/0.5526, allocations: 4.636 MB / 462.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003008/0.5557, allocations: 0.7148 MB / 462.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005701/0.5614, allocations: 1.92 MB / 464.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005989/0.5674, allocations: 3.889 MB / 468.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009335/0.5768, allocations: 4.181 MB / 472.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01896/0.5958, allocations: 13.01 MB / 485.8 MB, free: 6.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.5958, allocations: 4 kB / 485.8 MB, free: 6.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5958, allocations: 0 / 485.8 MB, free: 6.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005061/0.5963, allocations: 0 / 485.8 MB, free: 6.82 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.03151/0.6279, allocations: 8.946 MB / 494.8 MB, free: 13.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/0.628, allocations: 8.031 kB / 494.8 MB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04653/0.6745, allocations: 4.851 MB / 499.6 MB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01726/0.6918, allocations: 6.576 MB / 0.4943 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.6923, allocations: 431.7 kB / 0.4947 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003468/0.6958, allocations: 0.5819 MB / 0.4953 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03661/0.7324, allocations: 17.06 MB / 0.512 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000364/0.7328, allocations: 87.2 kB / 0.5121 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001683/0.7345, allocations: 267.8 kB / 0.5123 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004757/0.7393, allocations: 2.654 MB / 0.5149 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03124/0.7705, allocations: 14.78 MB / 0.5293 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4448/1.215, allocations: 64.63 MB / 0.5925 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02073/1.236, allocations: 8.788 MB / 0.601 GB, free: 113.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006046/1.242, allocations: 5.057 MB / 0.606 GB, free: 108.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02374/1.266, allocations: 18.64 MB / 0.6242 GB, free: 89.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/1.266, allocations: 69.62 kB / 0.6242 GB, free: 89.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.001e-06/1.266, allocations: 0 / 0.6242 GB, free: 89.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2259/1.492, allocations: 74.07 MB / 0.6966 GB, free: 15.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/1.492, allocations: 384.6 kB / 0.6969 GB, free: 15.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008564/1.501, allocations: 6.42 MB / 0.7032 GB, free: 8.852 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001292/1.502, allocations: 81.7 kB / 0.7033 GB, free: 8.766 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002542/1.505, allocations: 4.754 MB / 0.7079 GB, free: 3.953 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/1.507, allocations: 1.384 MB / 0.7093 GB, free: 2.551 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003007/1.51, allocations: 1.974 MB / 0.7112 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.827e-05/1.51, allocations: 305.1 kB / 0.7115 GB, free: 268 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2253/1.735, allocations: 5.982 MB / 0.7173 GB, free: 152.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01316/1.748, allocations: 11.03 MB / 0.7281 GB, free: 143.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02117/1.77, allocations: 17.96 MB / 0.7457 GB, free: 131.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00033/1.77, allocations: 47.72 kB / 0.7457 GB, free: 131.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04817/1.818, allocations: 23.34 MB / 0.7685 GB, free: 115.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.818, allocations: 80 kB / 0.7686 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.818, allocations: 172 kB / 0.7687 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01993/1.838, allocations: 7.465 MB / 0.776 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007248/1.846, allocations: 2.187 MB / 0.7782 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04132/1.887, allocations: 38.11 MB / 0.8154 GB, free: 67.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/1.898, allocations: 0.7457 MB / 0.8161 GB, free: 66.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002075/1.9, allocations: 0.5271 MB / 0.8166 GB, free: 65.82 MB / 446.1 MB 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.006365/1.906, allocations: 3.443 MB / 0.82 GB, free: 62.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/1.908, allocations: 0.5775 MB / 0.8205 GB, free: 62.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02882/1.936, allocations: 16.96 MB / 0.8371 GB, free: 45.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.072e-05/1.937, allocations: 49.53 kB / 0.8372 GB, free: 45.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.09e-05/1.937, allocations: 20 kB / 0.8372 GB, free: 45.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.979e-05/1.937, allocations: 15.94 kB / 0.8372 GB, free: 45.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05061/1.987, allocations: 32.16 MB / 0.8686 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-05/1.987, allocations: 7.938 kB / 0.8686 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2083/2.196, allocations: 0.5999 MB / 0.8692 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02183/2.218, allocations: 7.038 MB / 0.8761 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009996/2.219, allocations: 65.92 kB / 0.8761 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04224/2.261, allocations: 36.31 MB / 0.9116 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/2.261, allocations: 3.688 kB / 0.9116 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03708/2.298, allocations: 24.6 MB / 0.9356 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004359/2.302, allocations: 1.658 MB / 0.9372 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003514/2.306, allocations: 63.98 kB / 0.9373 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006196/2.312, allocations: 447.3 kB / 0.9377 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001742/2.314, allocations: 250.5 kB / 0.9379 GB, free: 99.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005266/2.314, allocations: 95.83 kB / 0.938 GB, free: 99.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006167/2.321, allocations: 4.084 MB / 0.942 GB, free: 95.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/2.321, allocations: 0.5625 kB / 0.942 GB, free: 95.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008966/2.33, allocations: 2.291 MB / 0.9443 GB, free: 93.34 MB / 446.1 MB 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.001068/2.331, allocations: 280.9 kB / 0.9445 GB, free: 93.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02852/2.359, allocations: 20.07 MB / 0.9641 GB, free: 73.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/2.359, allocations: 4 kB / 0.9641 GB, free: 73.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009448/2.369, allocations: 6.696 MB / 0.9707 GB, free: 66.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0066/2.375, allocations: 0.9002 MB / 0.9716 GB, free: 65.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03276/2.408, allocations: 23.59 MB / 0.9946 GB, free: 41.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00856/2.417, allocations: 5.287 MB / 0.9998 GB, free: 36.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008401/2.425, allocations: 3.02 MB / 1.003 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/2.427, allocations: 379.4 kB / 1.003 GB, free: 33.16 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/2.427, allocations: 0 / 1.003 GB, free: 33.16 MB / 446.1 MB Notification: Performance of Templates: time 0.3797/2.807, allocations: 113.2 MB / 1.114 GB, free: 74 MB / 446.1 MB 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches