Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 201.9 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007762/0.0007764, allocations: 99.5 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.000238, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2151, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03668/0.2518, allocations: 50.42 MB / 462.5 MB, free: 7.359 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2755, allocations: 15.36 MB / 477.8 MB, free: 7.102 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006927/0.2825, allocations: 239.4 kB / 478.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.2837, allocations: 0.4897 MB / 478.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004139/0.2879, allocations: 2.013 MB / 480.6 MB, free: 4.355 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.2897, allocations: 1.006 MB / 481.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008553/0.2983, allocations: 8.806 MB / 490.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009267/0.3076, allocations: 8.909 MB / 499.3 MB, free: 1.129 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002643/0.3103, allocations: 1.693 MB / 0.4893 GB, free: 15.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003037/0.3133, allocations: 2.546 MB / 0.4917 GB, free: 12.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005157/0.3139, allocations: 184 kB / 0.4919 GB, free: 12.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.3162, allocations: 1.373 MB / 0.4933 GB, free: 11.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001922/0.3181, allocations: 2.193 MB / 0.4954 GB, free: 9.121 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002308/0.3204, allocations: 2.478 MB / 0.4978 GB, free: 6.621 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1845/0.505, allocations: 8.879 MB / 0.5065 GB, free: 22.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.505, allocations: 0 / 0.5065 GB, free: 22.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.505, allocations: 0.7188 kB / 0.5065 GB, free: 22.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002224/0.5053, allocations: 0.75 kB / 0.5065 GB, free: 22.78 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.00917/0.5144, allocations: 4.936 MB / 0.5113 GB, free: 20.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.5145, allocations: 9.625 kB / 0.5113 GB, free: 20.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01049/0.525, allocations: 2.587 MB / 0.5138 GB, free: 20.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008159/0.5332, allocations: 3.698 MB / 0.5175 GB, free: 19.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.5334, allocations: 308 kB / 0.5177 GB, free: 19.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/0.5347, allocations: 438.5 kB / 0.5182 GB, free: 19.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02033/0.555, allocations: 12.4 MB / 0.5303 GB, free: 17.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.5552, allocations: 58.64 kB / 0.5303 GB, free: 17.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000554/0.5557, allocations: 194.4 kB / 0.5305 GB, free: 17.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003035/0.5588, allocations: 2.028 MB / 0.5325 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/0.5776, allocations: 10.53 MB / 0.5428 GB, free: 16.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04808/0.6258, allocations: 44.37 MB / 0.5861 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.6377, allocations: 4.872 MB / 0.5909 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002635/0.6404, allocations: 2.013 MB / 0.5928 GB, free: 5.441 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.6508, allocations: 7.118 MB / 0.5998 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.6509, allocations: 47.56 kB / 0.5998 GB, free: 14.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 4.789e-06/0.6509, allocations: 0 / 0.5998 GB, free: 14.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=223): time 0.06169/0.7126, allocations: 19.68 MB / 0.6191 GB, free: 10.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.7127, allocations: 205.9 kB / 0.6193 GB, free: 10.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005795/0.7186, allocations: 4.437 MB / 0.6236 GB, free: 5.691 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004549/0.719, allocations: 65.55 kB / 0.6237 GB, free: 5.625 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002161/0.7212, allocations: 3.515 MB / 0.6271 GB, free: 2.129 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008389/0.7221, allocations: 0.8311 MB / 0.6279 GB, free: 1.305 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.7223, allocations: 140 kB / 0.628 GB, free: 1.168 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003441/0.7227, allocations: 0.5831 MB / 0.6286 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003287/0.726, allocations: 2.336 MB / 0.6309 GB, free: 14.24 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005287/0.7313, allocations: 6.138 MB / 0.6369 GB, free: 6.289 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009602/0.7409, allocations: 9.134 MB / 0.6458 GB, free: 11.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-05/0.741, allocations: 36 kB / 0.6458 GB, free: 11.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01633/0.7574, allocations: 9.495 MB / 0.6551 GB, free: 3.113 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.385e-05/0.7575, allocations: 60 kB / 0.6552 GB, free: 3.055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/0.7576, allocations: 136 kB / 0.6553 GB, free: 2.922 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00398/0.7616, allocations: 1.366 MB / 0.6566 GB, free: 1.551 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00448/0.7661, allocations: 1.481 MB / 0.6581 GB, free: 204 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.777, allocations: 7.962 MB / 0.6658 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004653/0.7817, allocations: 358.5 kB / 0.6662 GB, free: 7.824 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000851/0.7826, allocations: 388 kB / 0.6666 GB, free: 7.445 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003936/0.7865, allocations: 2.492 MB / 0.669 GB, free: 5.07 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000738/0.7873, allocations: 394.8 kB / 0.6694 GB, free: 4.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008386/0.7957, allocations: 4.115 MB / 0.6734 GB, free: 0.5742 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.802e-05/0.7957, allocations: 24 kB / 0.6734 GB, free: 0.5508 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.7957, allocations: 12 kB / 0.6734 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/0.7958, allocations: 11.95 kB / 0.6734 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/0.8155, allocations: 10.36 MB / 0.6835 GB, free: 6.113 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.258e-05/0.8156, allocations: 8.594 kB / 0.6836 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.8172, allocations: 351.9 kB / 0.6839 GB, free: 5.781 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003796/0.821, allocations: 1.151 MB / 0.685 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002426/0.8213, allocations: 40 kB / 0.6851 GB, free: 4.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2046/1.026, allocations: 6.652 MB / 0.6916 GB, free: 198.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/1.026, allocations: 10.25 kB / 0.6916 GB, free: 198.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.036, allocations: 6.894 MB / 0.6983 GB, free: 196.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000961/1.037, allocations: 460.8 kB / 0.6987 GB, free: 196.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004338/1.038, allocations: 39.12 kB / 0.6988 GB, free: 196.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/1.039, allocations: 114.2 kB / 0.6989 GB, free: 196.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/1.04, allocations: 145.3 kB / 0.699 GB, free: 196.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.04, allocations: 66.88 kB / 0.6991 GB, free: 196.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003377/1.043, allocations: 2.764 MB / 0.7018 GB, free: 195.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.5e-07/1.043, allocations: 0 / 0.7018 GB, free: 195.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004254/1.048, allocations: 1.217 MB / 0.703 GB, free: 195.5 MB / 0.4948 GB 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004624/1.048, allocations: 248.4 kB / 0.7032 GB, free: 195.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007128/1.055, allocations: 5.711 MB / 0.7088 GB, free: 193.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/1.055, allocations: 1.75 kB / 0.7088 GB, free: 193.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002082/1.057, allocations: 1.865 MB / 0.7106 GB, free: 192.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005485/1.063, allocations: 0.5109 MB / 0.7111 GB, free: 192.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01918/1.082, allocations: 13.64 MB / 0.7244 GB, free: 181 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003416/1.085, allocations: 3.868 MB / 0.7282 GB, free: 178 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004462/1.09, allocations: 1.924 MB / 0.7301 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006432/1.091, allocations: 267.4 kB / 0.7303 GB, free: 176.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/1.091, allocations: 0 / 0.7303 GB, free: 176.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.06833/1.159, allocations: 43.48 MB / 0.7728 GB, free: 133.2 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches