Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.00141, allocations: 178.5 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.6 MB / 223.7 MB, free: 8.965 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008915/0.0008925, allocations: 90.36 kB / 272.1 MB, free: 8.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 4 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3037, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05575/0.3596, allocations: 68.66 MB / 445.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0434/0.403, allocations: 17.58 MB / 462.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0155/0.4186, allocations: 339.1 kB / 463.2 MB, free: 9.062 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002663/0.4213, allocations: 0.5984 MB / 463.8 MB, free: 8.461 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006967/0.4283, allocations: 2.397 MB / 466.2 MB, free: 6.055 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002715/0.431, allocations: 1.061 MB / 467.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01386/0.4449, allocations: 10.53 MB / 477.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01205/0.457, allocations: 8.946 MB / 486.7 MB, free: 1.012 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005266/0.4623, allocations: 2.082 MB / 488.8 MB, free: 14.92 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006394/0.4687, allocations: 3.169 MB / 492 MB, free: 11.74 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001387/0.4702, allocations: 216 kB / 492.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.4736, allocations: 1.236 MB / 493.4 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003584/0.4772, allocations: 2.614 MB / 496 MB, free: 7.672 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004915/0.4821, allocations: 2.986 MB / 499 MB, free: 4.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2814/0.7635, allocations: 9.658 MB / 0.4967 GB, free: 22.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.7636, allocations: 2.078 kB / 0.4967 GB, free: 22.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.7636, allocations: 2.625 kB / 0.4967 GB, free: 22.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003922/0.764, allocations: 0 / 0.4967 GB, free: 22.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01618/0.7802, allocations: 6.315 MB / 0.5029 GB, free: 20.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.7802, allocations: 11.19 kB / 0.5029 GB, free: 20.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01455/0.7948, allocations: 3.244 MB / 0.5061 GB, free: 19.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.8071, allocations: 4.883 MB / 0.5109 GB, free: 18.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003888/0.8075, allocations: 339.1 kB / 0.5112 GB, free: 18.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002425/0.8099, allocations: 464.3 kB / 0.5116 GB, free: 18.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02813/0.8381, allocations: 14.56 MB / 0.5258 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00021/0.8383, allocations: 78.58 kB / 0.5259 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006494/0.839, allocations: 213.9 kB / 0.5261 GB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004827/0.8438, allocations: 2.827 MB / 0.5289 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02787/0.8717, allocations: 13.2 MB / 0.5418 GB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08413/0.9559, allocations: 58.53 MB / 0.5989 GB, free: 8.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/0.9736, allocations: 7.732 MB / 0.6065 GB, free: 3.012 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008848/0.9825, allocations: 5.039 MB / 0.6114 GB, free: 14.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02262/1.005, allocations: 12.8 MB / 0.6239 GB, free: 1.645 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.861e-05/1.005, allocations: 71.78 kB / 0.624 GB, free: 1.566 MB / 442.7 MB Notification: Performance of pre-optimization done (n=326): time 6.412e-06/1.005, allocations: 0 / 0.624 GB, free: 1.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=572): time 1.906/2.911, allocations: 407.2 MB / 1.022 GB, free: 76.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.126e-05/2.912, allocations: 265.7 kB / 1.022 GB, free: 75.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006542/2.918, allocations: 5.448 MB / 1.027 GB, free: 70.44 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001786/2.92, allocations: 121.7 kB / 1.027 GB, free: 70.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001885/2.922, allocations: 3.93 MB / 1.031 GB, free: 66.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002456/2.924, allocations: 2.017 MB / 1.033 GB, free: 64.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008845/2.925, allocations: 192.5 kB / 1.033 GB, free: 64.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003467/2.926, allocations: 0.7229 MB / 1.034 GB, free: 63.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01229/2.938, allocations: 11.02 MB / 1.045 GB, free: 52.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0153/2.953, allocations: 15.2 MB / 1.06 GB, free: 35.29 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2724/3.226, allocations: 27.39 MB / 1.086 GB, free: 175.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/3.226, allocations: 41.06 kB / 1.086 GB, free: 175.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3065/3.532, allocations: 141 MB / 1.224 GB, free: 61.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.757e-05/3.532, allocations: 69.58 kB / 1.224 GB, free: 61.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/3.533, allocations: 140 kB / 1.224 GB, free: 61.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07424/3.607, allocations: 34.78 MB / 1.258 GB, free: 26.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004927/3.612, allocations: 1.564 MB / 1.26 GB, free: 25.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.432/4.044, allocations: 190.5 MB / 1.446 GB, free: 30.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01357/4.057, allocations: 1.714 MB / 1.447 GB, free: 28.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002394/4.06, allocations: 0.5452 MB / 1.448 GB, free: 27.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (17,101,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.00647/4.066, allocations: 3.097 MB / 1.451 GB, free: 24.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00169/4.068, allocations: 0.5759 MB / 1.452 GB, free: 24.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4965/4.565, allocations: 136.6 MB / 1.585 GB, free: 86.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.66e-05/4.565, allocations: 60.78 kB / 1.585 GB, free: 86.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001606/4.565, allocations: 57.72 kB / 1.585 GB, free: 86.48 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/4.565, allocations: 31.89 kB / 1.585 GB, free: 86.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.547/5.112, allocations: 206.2 MB / 1.786 GB, free: 88.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.542e-05/5.112, allocations: 4 kB / 1.786 GB, free: 88.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/5.114, allocations: 328.7 kB / 1.787 GB, free: 88.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06921/5.183, allocations: 33.91 MB / 1.82 GB, free: 54.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001787/5.185, allocations: 101 kB / 1.82 GB, free: 54.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.409/5.594, allocations: 173.4 MB / 1.989 GB, free: 61.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/5.594, allocations: 20.59 kB / 1.989 GB, free: 61.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4931/6.087, allocations: 152.5 MB / 2.138 GB, free: 90.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006004/6.093, allocations: 3.01 MB / 2.141 GB, free: 87.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001899/6.095, allocations: 100.7 kB / 2.141 GB, free: 87.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007614/6.103, allocations: 1.487 MB / 2.143 GB, free: 86.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00337/6.106, allocations: 0.4896 MB / 2.143 GB, free: 85.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007899/6.107, allocations: 145.6 kB / 2.143 GB, free: 85.49 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004137/6.111, allocations: 3.46 MB / 2.147 GB, free: 82.05 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/6.111, allocations: 0 / 2.147 GB, free: 82.05 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01116/6.122, allocations: 3.853 MB / 2.151 GB, free: 78.21 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/6.123, allocations: 262.8 kB / 2.151 GB, free: 77.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04832/6.171, allocations: 33.66 MB / 2.184 GB, free: 44.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/6.172, allocations: 0 / 2.184 GB, free: 44.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2072/6.379, allocations: 20.5 MB / 2.204 GB, free: 167.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01045/6.389, allocations: 0.7479 MB / 2.204 GB, free: 167.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03746/6.427, allocations: 30.49 MB / 2.234 GB, free: 159.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004941/6.432, allocations: 5.118 MB / 2.239 GB, free: 158.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00478/6.436, allocations: 2.054 MB / 2.241 GB, free: 158.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007894/6.437, allocations: 313.1 kB / 2.241 GB, free: 158.6 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/6.437, allocations: 4 kB / 2.241 GB, free: 158.6 MB / 490.7 MB Notification: Performance of Templates: time 0.5086/6.946, allocations: 262.1 MB / 2.497 GB, free: 59.91 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches