Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, 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.359/1.359, 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.001158/0.001158, allocations: 102.7 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008464/0.0008467, allocations: 39.95 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2534, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.04147/0.295, allocations: 55.43 MB / 454.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02889/0.3239, allocations: 11.91 MB / 466.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01124/0.3352, allocations: 247.3 kB / 467.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00802/0.3433, allocations: 4.196 MB / 471.2 MB, free: 9.316 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.3492, allocations: 2.023 MB / 473.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.3517, allocations: 1.014 MB / 474.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.3623, allocations: 8.716 MB / 483 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007733/0.37, allocations: 5.207 MB / 488.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003742/0.3738, allocations: 1.916 MB / 490.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005075/0.3789, allocations: 3.034 MB / 493.2 MB, free: 3.309 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001787/0.3807, allocations: 347.9 kB / 493.5 MB, free: 2.969 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0044/0.3851, allocations: 1.568 MB / 495.1 MB, free: 1.398 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003873/0.3891, allocations: 2.447 MB / 497.5 MB, free: 14.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006176/0.3953, allocations: 2.746 MB / 0.4885 GB, free: 12.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01314/0.4084, allocations: 9.179 MB / 0.4975 GB, free: 2.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4085, allocations: 0 / 0.4975 GB, free: 2.977 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4085, allocations: 0 / 0.4975 GB, free: 2.977 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003837/0.4089, allocations: 0 / 0.4975 GB, free: 2.977 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.217/0.6259, allocations: 6.016 MB / 0.5034 GB, free: 93.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.6259, allocations: 10.88 kB / 0.5034 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/0.6378, allocations: 2.541 MB / 0.5059 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009429/0.6473, allocations: 3.744 MB / 0.5095 GB, free: 91.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.6476, allocations: 301.7 kB / 0.5098 GB, free: 91.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001624/0.6492, allocations: 449.3 kB / 0.5102 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02123/0.6704, allocations: 12.4 MB / 0.5223 GB, free: 78.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001512/0.6706, allocations: 51.06 kB / 0.5224 GB, free: 78.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005351/0.6712, allocations: 191.2 kB / 0.5226 GB, free: 78.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00259/0.6738, allocations: 2.034 MB / 0.5246 GB, free: 76.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01878/0.6926, allocations: 10.56 MB / 0.5349 GB, free: 66.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04755/0.7401, allocations: 44.36 MB / 0.5782 GB, free: 20.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.7514, allocations: 4.85 MB / 0.5829 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/0.7536, allocations: 2.008 MB / 0.5849 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009549/0.7632, allocations: 7.121 MB / 0.5918 GB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.7632, allocations: 47.56 kB / 0.5919 GB, free: 6.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 4.228e-06/0.7632, allocations: 0 / 0.5919 GB, free: 6.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=223): time 0.06047/0.8237, allocations: 19.62 MB / 0.611 GB, free: 2.711 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.8238, allocations: 205.9 kB / 0.6112 GB, free: 2.465 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005938/0.8298, allocations: 4.47 MB / 0.6156 GB, free: 13.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003628/0.8302, allocations: 57.7 kB / 0.6157 GB, free: 13.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/0.8323, allocations: 3.51 MB / 0.6191 GB, free: 10.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008779/0.8332, allocations: 0.8433 MB / 0.6199 GB, free: 9.566 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/0.8349, allocations: 1.341 MB / 0.6212 GB, free: 8.215 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.194e-05/0.835, allocations: 301.1 kB / 0.6215 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003206/0.8382, allocations: 2.363 MB / 0.6238 GB, free: 5.551 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005803/0.844, allocations: 6.171 MB / 0.6298 GB, free: 13.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.8542, allocations: 9.167 MB / 0.6388 GB, free: 2.535 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-05/0.8543, allocations: 36 kB / 0.6388 GB, free: 2.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01785/0.8721, allocations: 9.553 MB / 0.6482 GB, free: 8.938 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.8723, allocations: 62.97 kB / 0.6482 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.8725, allocations: 132 kB / 0.6483 GB, free: 8.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004143/0.8766, allocations: 1.374 MB / 0.6497 GB, free: 7.371 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/0.8812, allocations: 1.47 MB / 0.6511 GB, free: 5.898 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.8923, allocations: 7.963 MB / 0.6589 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004865/0.8972, allocations: 355.4 kB / 0.6592 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007142/0.8979, allocations: 394.1 kB / 0.6596 GB, free: 13.07 MB / 458.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.00351/0.9015, allocations: 2.493 MB / 0.662 GB, free: 10.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007093/0.9022, allocations: 398.8 kB / 0.6624 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008128/0.9103, allocations: 4.127 MB / 0.6665 GB, free: 6.027 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.904e-05/0.9104, allocations: 27.67 kB / 0.6665 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.9104, allocations: 8 kB / 0.6665 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/0.9104, allocations: 15.89 kB / 0.6665 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2565/1.167, allocations: 10.34 MB / 0.6766 GB, free: 158.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/1.167, allocations: 9.219 kB / 0.6766 GB, free: 158.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/1.169, allocations: 347.4 kB / 0.677 GB, free: 158.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004286/1.173, allocations: 1.152 MB / 0.6781 GB, free: 158.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/1.173, allocations: 43.48 kB / 0.6781 GB, free: 158.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008795/1.182, allocations: 6.671 MB / 0.6846 GB, free: 155.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.182, allocations: 3.906 kB / 0.6846 GB, free: 155.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07507/1.257, allocations: 43.35 MB / 0.727 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006852/1.258, allocations: 456.9 kB / 0.7274 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004359/1.258, allocations: 42.8 kB / 0.7274 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/1.26, allocations: 111.8 kB / 0.7275 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003507/1.26, allocations: 145 kB / 0.7277 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.26, allocations: 63.98 kB / 0.7277 GB, free: 119.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003318/1.264, allocations: 2.803 MB / 0.7305 GB, free: 116.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.264, allocations: 0 / 0.7305 GB, free: 116.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005926/1.27, allocations: 1.598 MB / 0.732 GB, free: 115.2 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.0005752/1.27, allocations: 229.5 kB / 0.7323 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007398/1.278, allocations: 5.755 MB / 0.7379 GB, free: 109.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.278, allocations: 0 / 0.7379 GB, free: 109.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/1.28, allocations: 1.876 MB / 0.7397 GB, free: 107.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/1.283, allocations: 0.5077 MB / 0.7402 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01891/1.302, allocations: 15.25 MB / 0.7551 GB, free: 91.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004688/1.306, allocations: 3.946 MB / 0.759 GB, free: 87.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004768/1.311, allocations: 1.956 MB / 0.7609 GB, free: 85.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009452/1.312, allocations: 275.4 kB / 0.7611 GB, free: 85.33 MB / 458.7 MB Notification: Performance of SimCode: time 2.144e-06/1.312, allocations: 0 / 0.7611 GB, free: 85.33 MB / 458.7 MB Notification: Performance of Templates: time 0.09013/1.402, allocations: 56.05 MB / 0.8159 GB, free: 29.53 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@2/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