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.001614/0.001614, allocations: 98.06 kB / 18.39 MB, free: 4.664 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.001901/0.001901, allocations: 188.3 kB / 19.33 MB, free: 3.738 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.545/1.545, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001502/0.001502, allocations: 55.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2615/0.3681, allocations: 18.58 MB / 394.4 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3845, allocations: 6.139 MB / 400.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006269/0.3908, allocations: 144.1 kB / 400.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01374/0.4046, allocations: 6.28 MB / 407 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009856/0.4145, allocations: 2.857 MB / 409.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006242/0.4208, allocations: 2.284 MB / 412.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01714/0.438, allocations: 8.84 MB / 420.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01302/0.4511, allocations: 8.423 MB / 429.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007134/0.4582, allocations: 3.225 MB / 432.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007482/0.4658, allocations: 4.195 MB / 436.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0032/0.469, allocations: 0.7148 MB / 437.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006315/0.4753, allocations: 1.908 MB / 439.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006453/0.4818, allocations: 3.866 MB / 443.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009799/0.4917, allocations: 4.158 MB / 447.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0203/0.512, allocations: 13.24 MB / 460.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.5121, allocations: 0 / 460.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5121, allocations: 4 kB / 460.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004768/0.5126, allocations: 0 / 460.7 MB, free: 10.41 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.02683/0.5394, allocations: 8.943 MB / 469.6 MB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.5395, allocations: 8.031 kB / 469.6 MB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04744/0.5869, allocations: 4.847 MB / 474.5 MB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0186/0.6056, allocations: 6.701 MB / 481.2 MB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004629/0.6061, allocations: 435.7 kB / 481.6 MB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003524/0.6097, allocations: 0.5858 MB / 482.2 MB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03585/0.6455, allocations: 17.06 MB / 499.2 MB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003383/0.6459, allocations: 79.27 kB / 499.3 MB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001857/0.6478, allocations: 267.8 kB / 499.6 MB, free: 2.367 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004717/0.6525, allocations: 2.658 MB / 0.4905 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0305/0.683, allocations: 14.79 MB / 0.5049 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4649/1.148, allocations: 64.34 MB / 0.5677 GB, free: 109.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02484/1.173, allocations: 8.776 MB / 0.5763 GB, free: 109 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006651/1.18, allocations: 5.069 MB / 0.5813 GB, free: 107.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02746/1.207, allocations: 18.64 MB / 0.5995 GB, free: 99.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/1.207, allocations: 67.16 kB / 0.5995 GB, free: 99.26 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.651e-06/1.207, allocations: 0 / 0.5995 GB, free: 99.26 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2421/1.449, allocations: 74.06 MB / 0.6719 GB, free: 32.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.449, allocations: 380.1 kB / 0.6722 GB, free: 31.94 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008073/1.458, allocations: 6.42 MB / 0.6785 GB, free: 25.52 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.459, allocations: 85.7 kB / 0.6786 GB, free: 25.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002341/1.461, allocations: 4.76 MB / 0.6832 GB, free: 20.67 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/1.463, allocations: 1.378 MB / 0.6846 GB, free: 19.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002737/1.465, allocations: 1.982 MB / 0.6865 GB, free: 17.31 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.06e-05/1.465, allocations: 301.1 kB / 0.6868 GB, free: 17.01 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006845/1.472, allocations: 5.988 MB / 0.6926 GB, free: 11.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.482, allocations: 11.02 MB / 0.7034 GB, free: 13.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02386/1.506, allocations: 17.96 MB / 0.7209 GB, free: 9.293 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001808/1.507, allocations: 48 kB / 0.721 GB, free: 9.246 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05152/1.558, allocations: 23.35 MB / 0.7438 GB, free: 1.848 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/1.558, allocations: 80 kB / 0.7439 GB, free: 1.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002473/1.559, allocations: 172 kB / 0.744 GB, free: 1.602 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2492/1.808, allocations: 7.444 MB / 0.7513 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009053/1.817, allocations: 2.192 MB / 0.7534 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04975/1.867, allocations: 38.1 MB / 0.7906 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009748/1.877, allocations: 0.7484 MB / 0.7914 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002229/1.879, allocations: 0.5271 MB / 0.7919 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.006787/1.886, allocations: 3.437 MB / 0.7952 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/1.887, allocations: 0.5742 MB / 0.7958 GB, free: 155.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03299/1.92, allocations: 16.95 MB / 0.8124 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.231e-05/1.92, allocations: 63.47 kB / 0.8124 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.2e-05/1.92, allocations: 16 kB / 0.8124 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-05/1.921, allocations: 15.94 kB / 0.8125 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0531/1.974, allocations: 32.04 MB / 0.8437 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-05/1.974, allocations: 4 kB / 0.8438 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003489/1.977, allocations: 0.6045 MB / 0.8443 GB, free: 108.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01993/1.997, allocations: 7.013 MB / 0.8512 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008655/1.998, allocations: 63.98 kB / 0.8513 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0402/2.038, allocations: 36.31 MB / 0.8867 GB, free: 64.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/2.038, allocations: 7.984 kB / 0.8867 GB, free: 64.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03849/2.077, allocations: 24.6 MB / 0.9107 GB, free: 40.07 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003562/2.08, allocations: 1.661 MB / 0.9124 GB, free: 38.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001668/2.082, allocations: 61.59 kB / 0.9124 GB, free: 38.32 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004985/2.087, allocations: 447.9 kB / 0.9129 GB, free: 37.88 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/2.088, allocations: 250.6 kB / 0.9131 GB, free: 37.64 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004398/2.089, allocations: 94.72 kB / 0.9132 GB, free: 37.55 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005906/2.095, allocations: 4.084 MB / 0.9172 GB, free: 33.47 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.7e-07/2.095, allocations: 4 kB / 0.9172 GB, free: 33.46 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009931/2.105, allocations: 2.29 MB / 0.9194 GB, free: 31.18 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.00121/2.106, allocations: 275.3 kB / 0.9197 GB, free: 30.92 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02077/2.127, allocations: 14.89 MB / 0.9342 GB, free: 16 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/2.127, allocations: 0 / 0.9342 GB, free: 16 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.2167/2.344, allocations: 6.694 MB / 0.9408 GB, free: 174.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00725/2.351, allocations: 0.8934 MB / 0.9416 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0393/2.39, allocations: 20.63 MB / 0.9618 GB, free: 167 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007866/2.398, allocations: 5.228 MB / 0.9669 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00273/2.401, allocations: 445.1 kB / 0.9673 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.032e-06/2.401, allocations: 0 / 0.9673 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.4554/2.856, allocations: 210.1 MB / 1.173 GB, free: 144.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