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.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009369/0.0009369, allocations: 179.2 kB / 17.36 MB, free: 4.445 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.557/1.557, allocations: 205.6 MB / 223.7 MB, free: 8.941 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.0008389/0.0008387, allocations: 94.34 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002542, allocations: 4 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2428, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03342/0.2763, allocations: 48.59 MB / 425.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0289/0.3052, allocations: 14.03 MB / 439.2 MB, free: 1 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009768/0.315, allocations: 235.4 kB / 439.5 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.3172, allocations: 0.6143 MB / 440.1 MB, free: 156 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006594/0.3238, allocations: 2.422 MB / 442.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002128/0.3259, allocations: 0.9167 MB / 443.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.3376, allocations: 9.451 MB / 452.9 MB, free: 3.328 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008978/0.3466, allocations: 6.757 MB / 459.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003842/0.3505, allocations: 1.926 MB / 461.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00435/0.3549, allocations: 3.126 MB / 464.7 MB, free: 7.16 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008666/0.3558, allocations: 236 kB / 464.9 MB, free: 6.93 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.3585, allocations: 1.307 MB / 466.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00257/0.3611, allocations: 2.61 MB / 468.8 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00327/0.3644, allocations: 2.978 MB / 471.8 MB, free: 0 / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.3746, allocations: 9.681 MB / 481.5 MB, free: 6.285 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.3747, allocations: 7.938 kB / 481.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.3747, allocations: 0 / 481.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003857/0.3751, allocations: 4 kB / 481.5 MB, free: 6.273 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.015/0.3901, allocations: 6.063 MB / 487.6 MB, free: 132 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3902, allocations: 8.031 kB / 487.6 MB, free: 124 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.406, allocations: 4.036 MB / 491.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.417, allocations: 4.204 MB / 495.8 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.4173, allocations: 316.4 kB / 496.1 MB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001733/0.4191, allocations: 431.6 kB / 496.5 MB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2525/0.6716, allocations: 15.71 MB / 0.5002 GB, free: 101.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002756/0.672, allocations: 58.48 kB / 0.5003 GB, free: 101.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009162/0.6729, allocations: 201 kB / 0.5005 GB, free: 101.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004898/0.6778, allocations: 3.217 MB / 0.5036 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02422/0.702, allocations: 14.09 MB / 0.5174 GB, free: 90.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06573/0.7678, allocations: 57.79 MB / 0.5738 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/0.7801, allocations: 6.552 MB / 0.5802 GB, free: 25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004345/0.7845, allocations: 3.672 MB / 0.5838 GB, free: 21.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01859/0.8032, allocations: 14.66 MB / 0.5981 GB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.333e-05/0.8033, allocations: 56.56 kB / 0.5982 GB, free: 6.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 9.688e-06/0.8033, allocations: 8 kB / 0.5982 GB, free: 6.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.1403/0.9436, allocations: 42.62 MB / 0.6398 GB, free: 11.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.9438, allocations: 214.9 kB / 0.64 GB, free: 11.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008746/0.9526, allocations: 5.459 MB / 0.6453 GB, free: 5.758 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001013/0.9536, allocations: 77.69 kB / 0.6454 GB, free: 5.676 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003545/0.9572, allocations: 4.346 MB / 0.6497 GB, free: 1.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2186/1.176, allocations: 1.255 MB / 0.6509 GB, free: 141.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001572/1.177, allocations: 182.8 kB / 0.6511 GB, free: 141.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005895/1.178, allocations: 0.6953 MB / 0.6517 GB, free: 140.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006407/1.184, allocations: 4.778 MB / 0.6564 GB, free: 139.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009661/1.194, allocations: 9.764 MB / 0.6659 GB, free: 131 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01595/1.21, allocations: 15.53 MB / 0.6811 GB, free: 119.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002598/1.21, allocations: 54.84 kB / 0.6812 GB, free: 119.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03944/1.25, allocations: 19.5 MB / 0.7002 GB, free: 106.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.25, allocations: 84 kB / 0.7003 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/1.25, allocations: 176 kB / 0.7005 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01902/1.269, allocations: 5.975 MB / 0.7063 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006772/1.276, allocations: 2.106 MB / 0.7083 GB, free: 98.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0256/1.302, allocations: 24.78 MB / 0.7325 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008285/1.31, allocations: 0.5536 MB / 0.7331 GB, free: 72.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/1.311, allocations: 0.5166 MB / 0.7336 GB, free: 72.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005034/1.316, allocations: 3.097 MB / 0.7366 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009237/1.317, allocations: 0.4965 MB / 0.7371 GB, free: 69.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02543/1.343, allocations: 12.92 MB / 0.7497 GB, free: 56.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.985e-05/1.343, allocations: 58.45 kB / 0.7498 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/1.343, allocations: 8 kB / 0.7498 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.726e-05/1.343, allocations: 19.94 kB / 0.7498 GB, free: 55.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04247/1.385, allocations: 24.64 MB / 0.7739 GB, free: 30.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.214e-05/1.385, allocations: 8 kB / 0.7739 GB, free: 30.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003015/1.388, allocations: 0.5772 MB / 0.7744 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01683/1.405, allocations: 4.994 MB / 0.7793 GB, free: 25.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009036/1.406, allocations: 59.98 kB / 0.7794 GB, free: 25.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02131/1.428, allocations: 19.98 MB / 0.7989 GB, free: 5.086 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.428, allocations: 12.06 kB / 0.7989 GB, free: 5.074 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2694/1.697, allocations: 17.44 MB / 0.8159 GB, free: 139.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003828/1.701, allocations: 1.26 MB / 0.8171 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001459/1.702, allocations: 53.34 kB / 0.8172 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003063/1.706, allocations: 264.6 kB / 0.8174 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008286/1.706, allocations: 203 kB / 0.8176 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002878/1.707, allocations: 84.22 kB / 0.8177 GB, free: 139.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006306/1.713, allocations: 3.379 MB / 0.821 GB, free: 138.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.713, allocations: 0 / 0.821 GB, free: 138.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008871/1.722, allocations: 1.761 MB / 0.8227 GB, free: 138 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007124/1.723, allocations: 210.8 kB / 0.8229 GB, free: 137.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01574/1.738, allocations: 10.88 MB / 0.8336 GB, free: 133.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.738, allocations: 3.969 kB / 0.8336 GB, free: 133.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005216/1.744, allocations: 4.089 MB / 0.8376 GB, free: 132 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007266/1.751, allocations: 0.5908 MB / 0.8381 GB, free: 131.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/1.775, allocations: 19.31 MB / 0.857 GB, free: 116.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004849/1.78, allocations: 4.631 MB / 0.8615 GB, free: 111.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006644/1.787, allocations: 2.966 MB / 0.8644 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/1.788, allocations: 351.4 kB / 0.8648 GB, free: 108.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.382e-06/1.788, allocations: 0 / 0.8648 GB, free: 108.6 MB / 442.7 MB Notification: Performance of Templates: time 0.1275/1.916, allocations: 76.79 MB / 0.9397 GB, free: 31.7 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches