Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008027/0.0008027, allocations: 100.2 kB / 17.3 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 178.5 kB / 18.2 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004948, allocations: 16 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.09942, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.267/0.3664, allocations: 54.03 MB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03097/0.3975, allocations: 11.84 MB / 394.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01325/0.4108, allocations: 246.1 kB / 395.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.4134, allocations: 0.4899 MB / 395.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008388/0.4218, allocations: 2.033 MB / 397.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003641/0.4255, allocations: 1.006 MB / 398.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.4388, allocations: 8.213 MB / 406.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01332/0.4522, allocations: 7.393 MB / 414.2 MB, free: 392 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005018/0.4573, allocations: 1.536 MB / 415.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005532/0.4629, allocations: 2.576 MB / 418.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.4644, allocations: 184 kB / 418.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004382/0.4688, allocations: 1.401 MB / 419.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003571/0.4724, allocations: 2.228 MB / 422.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005275/0.4777, allocations: 2.489 MB / 424.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01354/0.4912, allocations: 8.895 MB / 433.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4913, allocations: 3.938 kB / 433.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4913, allocations: 4 kB / 433.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003763/0.4917, allocations: 0 / 433.5 MB, free: 15.23 MB / 350.1 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.0137/0.5054, allocations: 4.933 MB / 438.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.5055, allocations: 8.031 kB / 438.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/0.5181, allocations: 2.599 MB / 441.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/0.5289, allocations: 3.848 MB / 444.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.5294, allocations: 307.1 kB / 445.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002666/0.532, allocations: 445.8 kB / 445.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03033/0.5624, allocations: 12.44 MB / 458.1 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002893/0.5628, allocations: 47.58 kB / 458.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001538/0.5643, allocations: 187.9 kB / 458.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003704/0.568, allocations: 2.03 MB / 460.3 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/0.5927, allocations: 10.59 MB / 470.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07321/0.666, allocations: 44.37 MB / 0.5032 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01552/0.6816, allocations: 4.882 MB / 0.508 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/0.6856, allocations: 2.01 MB / 0.51 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01492/0.7005, allocations: 7.121 MB / 0.5169 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.142e-05/0.7006, allocations: 55.5 kB / 0.517 GB, free: 13.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.58e-06/0.7007, allocations: 0 / 0.517 GB, free: 13.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.2995/1, allocations: 19.74 MB / 0.5362 GB, free: 163.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1, allocations: 203.1 kB / 0.5364 GB, free: 163 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/1.012, allocations: 4.489 MB / 0.5408 GB, free: 161.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000601/1.012, allocations: 57.39 kB / 0.5409 GB, free: 161.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003045/1.015, allocations: 3.519 MB / 0.5443 GB, free: 158.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/1.017, allocations: 0.8519 MB / 0.5451 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009902/1.018, allocations: 0.5788 MB / 0.5457 GB, free: 157.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.12e-05/1.018, allocations: 301.1 kB / 0.546 GB, free: 157.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/1.022, allocations: 2.361 MB / 0.5483 GB, free: 156.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/1.026, allocations: 6.168 MB / 0.5543 GB, free: 150.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009249/1.036, allocations: 9.166 MB / 0.5633 GB, free: 143.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/1.036, allocations: 37.66 kB / 0.5633 GB, free: 143.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0176/1.053, allocations: 9.548 MB / 0.5726 GB, free: 137.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/1.054, allocations: 64.16 kB / 0.5727 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/1.054, allocations: 136 kB / 0.5728 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003741/1.057, allocations: 1.372 MB / 0.5742 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004344/1.062, allocations: 1.466 MB / 0.5756 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009566/1.071, allocations: 7.979 MB / 0.5834 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/1.077, allocations: 351.5 kB / 0.5837 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009729/1.078, allocations: 389.2 kB / 0.5841 GB, free: 125.9 MB / 446.1 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.004431/1.082, allocations: 2.489 MB / 0.5865 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/1.084, allocations: 406.8 kB / 0.5869 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007712/1.091, allocations: 4.126 MB / 0.5909 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/1.091, allocations: 24 kB / 0.591 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/1.091, allocations: 8 kB / 0.591 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.222e-05/1.091, allocations: 8.531 kB / 0.591 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/1.109, allocations: 10.38 MB / 0.6011 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/1.109, allocations: 8 kB / 0.6011 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/1.11, allocations: 352 kB / 0.6015 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003429/1.114, allocations: 1.147 MB / 0.6026 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002293/1.114, allocations: 40 kB / 0.6026 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008301/1.122, allocations: 6.669 MB / 0.6091 GB, free: 99.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.123, allocations: 4 kB / 0.6091 GB, free: 99.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/1.134, allocations: 6.915 MB / 0.6159 GB, free: 92.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/1.136, allocations: 0.7378 MB / 0.6166 GB, free: 92.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001199/1.138, allocations: 43.98 kB / 0.6167 GB, free: 92.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/1.14, allocations: 112.6 kB / 0.6168 GB, free: 92.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/1.14, allocations: 149 kB / 0.6169 GB, free: 91.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/1.14, allocations: 60.69 kB / 0.617 GB, free: 91.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003854/1.144, allocations: 2.822 MB / 0.6197 GB, free: 89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.144, allocations: 0 / 0.6197 GB, free: 89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006195/1.15, allocations: 1.221 MB / 0.6209 GB, free: 87.79 MB / 446.1 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.0005556/1.151, allocations: 232.3 kB / 0.6211 GB, free: 87.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008324/1.159, allocations: 5.739 MB / 0.6267 GB, free: 81.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.668e-05/1.159, allocations: 4 kB / 0.6267 GB, free: 81.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002545/1.162, allocations: 1.873 MB / 0.6286 GB, free: 79.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006641/1.168, allocations: 0.5079 MB / 0.6291 GB, free: 79.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.19, allocations: 13.69 MB / 0.6424 GB, free: 65.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004222/1.194, allocations: 3.875 MB / 0.6462 GB, free: 61.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004956/1.199, allocations: 1.926 MB / 0.6481 GB, free: 59.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/1.2, allocations: 271.4 kB / 0.6484 GB, free: 59.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/1.2, allocations: 0 / 0.6484 GB, free: 59.57 MB / 446.1 MB Notification: Performance of Templates: time 0.07976/1.28, allocations: 43.58 MB / 0.6909 GB, free: 15.99 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches