Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001502/0.001501, allocations: 112.5 kB / 17.7 MB, free: 5.434 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.001676/0.001676, allocations: 191 kB / 18.63 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 48.44 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.0945, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01757/0.1121, allocations: 18.17 MB / 369.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1647/0.2769, allocations: 6.047 MB / 375.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004078/0.281, allocations: 143.9 kB / 375.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.2918, allocations: 6.268 MB / 382.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007085/0.2989, allocations: 2.843 MB / 385 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00459/0.3035, allocations: 2.276 MB / 387.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.3157, allocations: 9.5 MB / 396.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00853/0.3243, allocations: 8.411 MB / 405.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006822/0.3311, allocations: 3.188 MB / 408.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005785/0.3369, allocations: 4.168 MB / 412.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001556/0.3385, allocations: 0.7109 MB / 413.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.3421, allocations: 1.906 MB / 415.1 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003308/0.3454, allocations: 3.82 MB / 419 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004655/0.3501, allocations: 4.149 MB / 423.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01592/0.366, allocations: 13.21 MB / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.243e-05/0.3661, allocations: 0 / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3661, allocations: 0 / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005184/0.3666, allocations: 4 kB / 436.3 MB, free: 13.28 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02505/0.3917, allocations: 8.906 MB / 445.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3917, allocations: 8.031 kB / 445.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04175/0.4335, allocations: 4.847 MB / 450.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01716/0.4507, allocations: 6.503 MB / 456.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000451/0.4512, allocations: 434.5 kB / 457 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002609/0.4538, allocations: 0.5864 MB / 457.6 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03572/0.4895, allocations: 17.05 MB / 474.6 MB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000259/0.4898, allocations: 79.27 kB / 474.7 MB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009307/0.4908, allocations: 270.2 kB / 475 MB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004146/0.4949, allocations: 2.656 MB / 477.6 MB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02986/0.5248, allocations: 14.78 MB / 492.4 MB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4632/0.9881, allocations: 64.23 MB / 0.5436 GB, free: 106.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0226/1.011, allocations: 8.786 MB / 0.5522 GB, free: 106 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006207/1.017, allocations: 5.055 MB / 0.5571 GB, free: 105 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02912/1.046, allocations: 18.64 MB / 0.5753 GB, free: 96.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.202e-05/1.046, allocations: 66.92 kB / 0.5754 GB, free: 96.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.141e-06/1.046, allocations: 3.688 kB / 0.5754 GB, free: 96.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2321/1.278, allocations: 73.98 MB / 0.6476 GB, free: 28.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/1.279, allocations: 376.6 kB / 0.648 GB, free: 28.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008116/1.287, allocations: 6.371 MB / 0.6542 GB, free: 21.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009123/1.288, allocations: 81.7 kB / 0.6543 GB, free: 21.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002072/1.29, allocations: 4.756 MB / 0.6589 GB, free: 16.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001384/1.291, allocations: 1.374 MB / 0.6603 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002634/1.294, allocations: 1.982 MB / 0.6622 GB, free: 13.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.985e-05/1.294, allocations: 301.1 kB / 0.6625 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006372/1.3, allocations: 5.992 MB / 0.6684 GB, free: 7.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009636/1.31, allocations: 11.02 MB / 0.6791 GB, free: 9.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02189/1.332, allocations: 17.96 MB / 0.6967 GB, free: 5.645 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/1.332, allocations: 48 kB / 0.6967 GB, free: 5.598 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2425/1.574, allocations: 23.33 MB / 0.7195 GB, free: 166.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001684/1.575, allocations: 83.41 kB / 0.7196 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003904/1.575, allocations: 171.9 kB / 0.7197 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02353/1.599, allocations: 7.452 MB / 0.727 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008686/1.607, allocations: 2.185 MB / 0.7291 GB, free: 166.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04461/1.652, allocations: 38.09 MB / 0.7663 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008487/1.66, allocations: 0.751 MB / 0.7671 GB, free: 150.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/1.662, allocations: 0.5269 MB / 0.7676 GB, free: 150.5 MB / 494.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.005384/1.668, allocations: 3.43 MB / 0.7709 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/1.669, allocations: 0.5717 MB / 0.7715 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.029/1.698, allocations: 16.96 MB / 0.7881 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.59e-05/1.698, allocations: 51.98 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-05/1.698, allocations: 16 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-05/1.698, allocations: 23.88 kB / 0.7881 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05163/1.75, allocations: 32.02 MB / 0.8194 GB, free: 99.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.085e-05/1.75, allocations: 11.92 kB / 0.8194 GB, free: 99.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003026/1.753, allocations: 0.6006 MB / 0.82 GB, free: 99.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01925/1.772, allocations: 7.019 MB / 0.8269 GB, free: 92.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009097/1.773, allocations: 60 kB / 0.8269 GB, free: 92.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04123/1.814, allocations: 36.3 MB / 0.8624 GB, free: 55.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.814, allocations: 7.938 kB / 0.8624 GB, free: 55.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03872/1.853, allocations: 24.6 MB / 0.8864 GB, free: 31.01 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.855, allocations: 0.6369 MB / 0.887 GB, free: 30.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002091/1.857, allocations: 64.06 kB / 0.8871 GB, free: 30.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005031/1.862, allocations: 450.5 kB / 0.8875 GB, free: 29.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/1.864, allocations: 249.4 kB / 0.8877 GB, free: 29.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007429/1.865, allocations: 91.98 kB / 0.8878 GB, free: 29.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006597/1.871, allocations: 4.048 MB / 0.8918 GB, free: 25.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.6e-07/1.871, allocations: 0 / 0.8918 GB, free: 25.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01152/1.883, allocations: 2.289 MB / 0.894 GB, free: 23.2 MB / 494.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.001597/1.884, allocations: 287.3 kB / 0.8943 GB, free: 22.92 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1899/2.074, allocations: 14.88 MB / 0.9088 GB, free: 171.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/2.074, allocations: 1.031 kB / 0.9088 GB, free: 171.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01003/2.084, allocations: 6.714 MB / 0.9154 GB, free: 169.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005286/2.09, allocations: 0.8822 MB / 0.9163 GB, free: 169 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02689/2.117, allocations: 19.92 MB / 0.9357 GB, free: 161 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004991/2.122, allocations: 5.264 MB / 0.9408 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005828/2.127, allocations: 3.019 MB / 0.9438 GB, free: 158.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/2.129, allocations: 385.8 kB / 0.9442 GB, free: 158.5 MB / 494.1 MB Notification: Performance of SimCode: time 8.42e-07/2.129, allocations: 0 / 0.9442 GB, free: 158.5 MB / 494.1 MB Notification: Performance of Templates: time 0.1369/2.266, allocations: 105.3 MB / 1.047 GB, free: 55.59 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches