Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008555/0.0008555, allocations: 175.5 kB / 16.71 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 225.7 MB / 243.2 MB, free: 8.43 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009174/0.0009174, allocations: 97.25 kB / 294.4 MB, free: 9.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002647, allocations: 4 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2079, allocations: 50.42 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03696/0.2449, allocations: 50.4 MB / 455 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02845/0.2734, allocations: 14.94 MB / 469.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009559/0.283, allocations: 247.3 kB / 470.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.2848, allocations: 0.4898 MB / 470.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005306/0.2902, allocations: 2.02 MB / 472.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002289/0.2925, allocations: 1.01 MB / 473.7 MB, free: 9.242 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00932/0.3018, allocations: 8.704 MB / 482.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01105/0.3129, allocations: 8.925 MB / 491.3 MB, free: 7.109 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.3163, allocations: 1.685 MB / 493 MB, free: 5.418 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003934/0.3202, allocations: 2.538 MB / 495.5 MB, free: 2.871 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009975/0.3213, allocations: 188 kB / 495.7 MB, free: 2.688 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003071/0.3243, allocations: 1.385 MB / 497.1 MB, free: 1.301 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002876/0.3272, allocations: 2.193 MB / 499.3 MB, free: 15.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003518/0.3308, allocations: 2.482 MB / 0.49 GB, free: 12.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009397/0.3402, allocations: 8.892 MB / 0.4987 GB, free: 3.676 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3402, allocations: 0 / 0.4987 GB, free: 3.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3403, allocations: 0 / 0.4987 GB, free: 3.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003128/0.3406, allocations: 4 kB / 0.4987 GB, free: 3.672 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.1731/0.5137, allocations: 4.919 MB / 0.5035 GB, free: 97.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5138, allocations: 9.125 kB / 0.5035 GB, free: 97.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/0.5244, allocations: 2.595 MB / 0.5061 GB, free: 97.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008237/0.5327, allocations: 3.746 MB / 0.5097 GB, free: 94.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.533, allocations: 309.6 kB / 0.51 GB, free: 94.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/0.5341, allocations: 441 kB / 0.5104 GB, free: 94.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.5518, allocations: 12.4 MB / 0.5225 GB, free: 82.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.552, allocations: 43.59 kB / 0.5226 GB, free: 82.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004586/0.5525, allocations: 188.8 kB / 0.5228 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002389/0.5548, allocations: 2.044 MB / 0.5248 GB, free: 80.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01764/0.5725, allocations: 10.54 MB / 0.5351 GB, free: 69.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04398/0.6165, allocations: 44.37 MB / 0.5784 GB, free: 24.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.6275, allocations: 4.878 MB / 0.5831 GB, free: 19.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00232/0.6298, allocations: 2.002 MB / 0.5851 GB, free: 17.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009981/0.6399, allocations: 7.106 MB / 0.592 GB, free: 9.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.6399, allocations: 59.48 kB / 0.5921 GB, free: 9.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 4.769e-06/0.6399, allocations: 4 kB / 0.5921 GB, free: 9.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=223): time 0.06206/0.702, allocations: 19.7 MB / 0.6113 GB, free: 6.043 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.842e-05/0.7021, allocations: 205.9 kB / 0.6115 GB, free: 5.797 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007627/0.7098, allocations: 4.434 MB / 0.6159 GB, free: 1.344 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003677/0.7102, allocations: 57.7 kB / 0.6159 GB, free: 1.281 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002387/0.7126, allocations: 3.51 MB / 0.6193 GB, free: 13.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009777/0.7136, allocations: 0.8445 MB / 0.6202 GB, free: 12.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005008/0.7141, allocations: 131.9 kB / 0.6203 GB, free: 12.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004401/0.7145, allocations: 0.587 MB / 0.6209 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00371/0.7183, allocations: 2.344 MB / 0.6232 GB, free: 9.797 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00604/0.7243, allocations: 6.132 MB / 0.6291 GB, free: 1.793 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009419/0.7337, allocations: 9.132 MB / 0.6381 GB, free: 6.797 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.087e-05/0.7338, allocations: 37.78 kB / 0.6381 GB, free: 6.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01538/0.7492, allocations: 9.496 MB / 0.6474 GB, free: 13.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.392e-05/0.7493, allocations: 64 kB / 0.6474 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/0.7495, allocations: 136.1 kB / 0.6476 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003812/0.7533, allocations: 1.37 MB / 0.6489 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004535/0.7578, allocations: 1.474 MB / 0.6503 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.7686, allocations: 7.972 MB / 0.6581 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004426/0.7731, allocations: 351.5 kB / 0.6585 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008092/0.7739, allocations: 388 kB / 0.6588 GB, free: 1.375 MB / 442.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.003977/0.7779, allocations: 2.489 MB / 0.6613 GB, free: 14.87 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000676/0.7786, allocations: 410.7 kB / 0.6617 GB, free: 14.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007521/0.7861, allocations: 4.103 MB / 0.6657 GB, free: 10.34 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.049e-05/0.7862, allocations: 27.94 kB / 0.6657 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.7862, allocations: 4 kB / 0.6657 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/0.7862, allocations: 11.97 kB / 0.6657 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1938/0.98, allocations: 10.34 MB / 0.6758 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.168e-05/0.98, allocations: 5 kB / 0.6758 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/0.9819, allocations: 351.3 kB / 0.6761 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003938/0.9859, allocations: 1.153 MB / 0.6773 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003291/0.9862, allocations: 38.19 kB / 0.6773 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008882/0.9951, allocations: 6.664 MB / 0.6838 GB, free: 153.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.9952, allocations: 6.625 kB / 0.6838 GB, free: 153.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/1.006, allocations: 6.899 MB / 0.6906 GB, free: 150.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/1.007, allocations: 458.5 kB / 0.691 GB, free: 150.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004671/1.008, allocations: 47.53 kB / 0.691 GB, free: 150.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/1.009, allocations: 115.3 kB / 0.6911 GB, free: 150.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/1.01, allocations: 138.2 kB / 0.6913 GB, free: 150.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/1.01, allocations: 62.42 kB / 0.6913 GB, free: 150.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003624/1.013, allocations: 2.767 MB / 0.694 GB, free: 149.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.273e-06/1.013, allocations: 0 / 0.694 GB, free: 149.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004323/1.018, allocations: 1.222 MB / 0.6952 GB, free: 149.6 MB / 458.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 (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.0004722/1.018, allocations: 234.2 kB / 0.6955 GB, free: 149.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006822/1.025, allocations: 5.72 MB / 0.701 GB, free: 147.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.025, allocations: 0 / 0.701 GB, free: 147.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002099/1.027, allocations: 1.869 MB / 0.7029 GB, free: 145.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005877/1.033, allocations: 0.5086 MB / 0.7034 GB, free: 145 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/1.05, allocations: 13.64 MB / 0.7167 GB, free: 132 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003056/1.053, allocations: 3.866 MB / 0.7205 GB, free: 128.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004133/1.057, allocations: 1.926 MB / 0.7223 GB, free: 126.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005844/1.058, allocations: 269.8 kB / 0.7226 GB, free: 125.9 MB / 458.7 MB Notification: Performance of SimCode: time 6.52e-07/1.058, allocations: 0 / 0.7226 GB, free: 125.9 MB / 458.7 MB Notification: Performance of Templates: time 0.06693/1.125, allocations: 43.49 MB / 0.7651 GB, free: 82.61 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches