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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 108.2 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008004/0.0008005, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2631, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.06534/0.3285, allocations: 81.05 MB / 480.5 MB, free: 12 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03982/0.3684, allocations: 16.53 MB / 497 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02018/0.3886, allocations: 371.1 kB / 497.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01147/0.4002, allocations: 6.304 MB / 0.4919 GB, free: 8.742 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00805/0.4083, allocations: 2.689 MB / 0.4945 GB, free: 6.047 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005198/0.4135, allocations: 2.188 MB / 0.4967 GB, free: 3.855 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2807/0.6942, allocations: 13.66 MB / 0.51 GB, free: 2.902 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01113/0.7054, allocations: 8.28 MB / 0.5181 GB, free: 1.805 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006148/0.7116, allocations: 2.852 MB / 0.5209 GB, free: 1.797 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008103/0.7198, allocations: 4.431 MB / 0.5252 GB, free: 1.715 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002732/0.7225, allocations: 0.4922 MB / 0.5257 GB, free: 1.711 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004873/0.7274, allocations: 1.773 MB / 0.5274 GB, free: 1.711 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004965/0.7324, allocations: 3.64 MB / 0.531 GB, free: 1.023 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008153/0.7406, allocations: 3.989 MB / 0.5349 GB, free: 15.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.7557, allocations: 12.75 MB / 0.5473 GB, free: 8.848 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.7557, allocations: 3.281 kB / 0.5473 GB, free: 8.848 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7558, allocations: 0 / 0.5473 GB, free: 8.848 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005059/0.7563, allocations: 0 / 0.5473 GB, free: 8.848 MB / 394.7 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.02921/0.7855, allocations: 8.911 MB / 0.556 GB, free: 15.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.7856, allocations: 19.97 kB / 0.5561 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04809/0.8337, allocations: 4.842 MB / 0.5608 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01975/0.8535, allocations: 6.365 MB / 0.567 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004533/0.854, allocations: 435.4 kB / 0.5674 GB, free: 4.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002864/0.8568, allocations: 0.5809 MB / 0.568 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03415/0.891, allocations: 17.05 MB / 0.5846 GB, free: 2.297 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/0.8913, allocations: 81.3 kB / 0.5847 GB, free: 2.242 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006953/0.892, allocations: 264.5 kB / 0.585 GB, free: 2.027 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004293/0.8963, allocations: 2.662 MB / 0.5876 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03123/0.9275, allocations: 14.77 MB / 0.602 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/1.037, allocations: 64.51 MB / 0.665 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03642/1.074, allocations: 8.785 MB / 0.6736 GB, free: 6.594 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009788/1.084, allocations: 5.061 MB / 0.6785 GB, free: 1.531 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4433/1.527, allocations: 18.63 MB / 0.6967 GB, free: 217.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/1.527, allocations: 67.59 kB / 0.6968 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.842e-06/1.527, allocations: 0.5 kB / 0.6968 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=374): time 0.2437/1.771, allocations: 74 MB / 0.769 GB, free: 152 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/1.771, allocations: 372.6 kB / 0.7694 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007621/1.779, allocations: 6.367 MB / 0.7756 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009474/1.78, allocations: 82.88 kB / 0.7757 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002062/1.782, allocations: 4.754 MB / 0.7803 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00151/1.783, allocations: 1.379 MB / 0.7817 GB, free: 139 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002707/1.786, allocations: 1.972 MB / 0.7836 GB, free: 137 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.181e-05/1.786, allocations: 301.1 kB / 0.7839 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006644/1.793, allocations: 5.992 MB / 0.7898 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009341/1.802, allocations: 11.02 MB / 0.8005 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01797/1.82, allocations: 17.97 MB / 0.8181 GB, free: 96.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/1.82, allocations: 48 kB / 0.8181 GB, free: 96.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04593/1.866, allocations: 23.35 MB / 0.8409 GB, free: 73.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.866, allocations: 80 kB / 0.841 GB, free: 73.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/1.866, allocations: 172 kB / 0.8411 GB, free: 73.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02235/1.889, allocations: 7.442 MB / 0.8484 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00763/1.896, allocations: 2.191 MB / 0.8505 GB, free: 63.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0429/1.939, allocations: 35.57 MB / 0.8853 GB, free: 27.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/1.95, allocations: 0.7485 MB / 0.886 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002293/1.952, allocations: 0.5256 MB / 0.8865 GB, free: 26.23 MB / 0.5105 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.006494/1.959, allocations: 3.431 MB / 0.8899 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/1.96, allocations: 0.5746 MB / 0.8904 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2457/2.206, allocations: 16.95 MB / 0.907 GB, free: 200.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.136e-05/2.206, allocations: 49.95 kB / 0.907 GB, free: 200.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.578e-05/2.206, allocations: 16.22 kB / 0.9071 GB, free: 200.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-05/2.206, allocations: 19.98 kB / 0.9071 GB, free: 200.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05365/2.26, allocations: 32.15 MB / 0.9385 GB, free: 184.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.197e-05/2.26, allocations: 0 / 0.9385 GB, free: 184.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/2.263, allocations: 0.6114 MB / 0.9391 GB, free: 183.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02094/2.284, allocations: 7.108 MB / 0.946 GB, free: 176.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009423/2.285, allocations: 64 kB / 0.9461 GB, free: 176.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0384/2.323, allocations: 33.85 MB / 0.9791 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/2.323, allocations: 4 kB / 0.9791 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5903/2.914, allocations: 195.9 MB / 1.17 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/2.916, allocations: 0.6252 MB / 1.171 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001645/2.917, allocations: 60 kB / 1.171 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004766/2.922, allocations: 449.5 kB / 1.172 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/2.924, allocations: 249.8 kB / 1.172 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000372/2.924, allocations: 91.7 kB / 1.172 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005848/2.93, allocations: 4.049 MB / 1.176 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/2.93, allocations: 0 / 1.176 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01188/2.942, allocations: 3.162 MB / 1.179 GB, free: 146.3 MB / 0.5105 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.00124/2.943, allocations: 280.7 kB / 1.179 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0227/2.966, allocations: 14.85 MB / 1.194 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/2.966, allocations: 4 kB / 1.194 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.011/2.977, allocations: 6.704 MB / 1.2 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00631/2.983, allocations: 0.8288 MB / 1.201 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0484/3.032, allocations: 27.31 MB / 1.228 GB, free: 97.12 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00967/3.041, allocations: 5.417 MB / 1.233 GB, free: 91.68 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008669/3.05, allocations: 3.064 MB / 1.236 GB, free: 88.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003567/3.054, allocations: 387.4 kB / 1.236 GB, free: 88.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.011e-06/3.054, allocations: 0 / 1.236 GB, free: 88.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.4629/3.517, allocations: 153.3 MB / 1.386 GB, free: 127.8 MB / 0.5105 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches