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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.001065/0.001065, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 51.39 kB / 300.6 MB, free: 6.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09908, allocations: 49.45 MB / 350.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2643/0.3635, allocations: 55.42 MB / 405.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03103/0.3945, allocations: 11.92 MB / 417.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01598/0.4106, allocations: 248.2 kB / 417.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008442/0.4191, allocations: 4.198 MB / 421.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006363/0.4255, allocations: 2.017 MB / 423.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002837/0.4284, allocations: 1.006 MB / 424.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.4389, allocations: 8.69 MB / 433.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007997/0.447, allocations: 5.214 MB / 438.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00445/0.4515, allocations: 1.896 MB / 440.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005125/0.4566, allocations: 3.038 MB / 443.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001591/0.4582, allocations: 340 kB / 444 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.4623, allocations: 1.564 MB / 445.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004042/0.4664, allocations: 2.451 MB / 448.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005985/0.4724, allocations: 2.75 MB / 450.8 MB, free: 60 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009893/0.4823, allocations: 7.617 MB / 458.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.4824, allocations: 0 / 458.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4824, allocations: 4 kB / 458.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003974/0.4828, allocations: 0 / 458.4 MB, free: 8.422 MB / 366.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.01797/0.5008, allocations: 6.017 MB / 464.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.5008, allocations: 8.031 kB / 464.4 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01172/0.5126, allocations: 2.537 MB / 467 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009286/0.5219, allocations: 3.753 MB / 470.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003348/0.5223, allocations: 304.5 kB / 471 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001944/0.5242, allocations: 447.5 kB / 471.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02666/0.5509, allocations: 12.4 MB / 483.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002842/0.5512, allocations: 55.48 kB / 483.9 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001546/0.5528, allocations: 191.8 kB / 484.1 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00333/0.5561, allocations: 2.031 MB / 486.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02333/0.5795, allocations: 10.57 MB / 496.7 MB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06344/0.643, allocations: 44.37 MB / 0.5284 GB, free: 3.586 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2204/0.8634, allocations: 4.829 MB / 0.5331 GB, free: 150.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003155/0.8666, allocations: 2.005 MB / 0.5351 GB, free: 150.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.8785, allocations: 7.11 MB / 0.542 GB, free: 146.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.8786, allocations: 54.91 kB / 0.5421 GB, free: 146.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.48e-06/0.8786, allocations: 0 / 0.5421 GB, free: 146.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06467/0.9433, allocations: 19.62 MB / 0.5612 GB, free: 140.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.9434, allocations: 204.1 kB / 0.5614 GB, free: 140.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005971/0.9494, allocations: 4.468 MB / 0.5658 GB, free: 137.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004618/0.9499, allocations: 57.7 kB / 0.5658 GB, free: 137.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.9517, allocations: 3.52 MB / 0.5693 GB, free: 133.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008781/0.9526, allocations: 0.8395 MB / 0.5701 GB, free: 133 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/0.9541, allocations: 1.337 MB / 0.5714 GB, free: 131.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.095e-05/0.9542, allocations: 305.1 kB / 0.5717 GB, free: 131.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/0.9572, allocations: 2.363 MB / 0.574 GB, free: 129 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00616/0.9634, allocations: 6.159 MB / 0.58 GB, free: 120.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.9738, allocations: 9.17 MB / 0.589 GB, free: 109.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/0.974, allocations: 40 kB / 0.589 GB, free: 109.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01646/0.9905, allocations: 9.549 MB / 0.5983 GB, free: 100.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.044e-05/0.9906, allocations: 64 kB / 0.5984 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/0.9907, allocations: 132 kB / 0.5985 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004013/0.9948, allocations: 1.374 MB / 0.5999 GB, free: 98.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004451/0.9992, allocations: 1.474 MB / 0.6013 GB, free: 97.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009956/1.009, allocations: 7.971 MB / 0.6091 GB, free: 89.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007742/1.017, allocations: 355.5 kB / 0.6094 GB, free: 88.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00166/1.019, allocations: 384 kB / 0.6098 GB, free: 88.45 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.006498/1.025, allocations: 2.488 MB / 0.6122 GB, free: 85.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00144/1.027, allocations: 402.8 kB / 0.6126 GB, free: 85.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.038, allocations: 4.11 MB / 0.6166 GB, free: 81.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.538e-05/1.038, allocations: 27.98 kB / 0.6166 GB, free: 81.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/1.038, allocations: 8 kB / 0.6166 GB, free: 81.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.589e-05/1.038, allocations: 15.89 kB / 0.6167 GB, free: 81.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/1.065, allocations: 10.38 MB / 0.6268 GB, free: 70.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-05/1.065, allocations: 8 kB / 0.6268 GB, free: 70.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/1.067, allocations: 348 kB / 0.6271 GB, free: 70.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003893/1.071, allocations: 1.152 MB / 0.6283 GB, free: 69.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005253/1.072, allocations: 48.45 kB / 0.6283 GB, free: 69.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008892/1.081, allocations: 6.664 MB / 0.6348 GB, free: 62.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.081, allocations: 7.984 kB / 0.6348 GB, free: 62.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/1.092, allocations: 6.913 MB / 0.6416 GB, free: 55.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.094, allocations: 451.8 kB / 0.642 GB, free: 55.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001361/1.095, allocations: 47.88 kB / 0.6421 GB, free: 55.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002628/1.098, allocations: 111.9 kB / 0.6422 GB, free: 54.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006351/1.098, allocations: 148.4 kB / 0.6423 GB, free: 54.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003005/1.099, allocations: 59.98 kB / 0.6424 GB, free: 54.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005561/1.104, allocations: 2.807 MB / 0.6451 GB, free: 51.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.282e-06/1.104, allocations: 0 / 0.6451 GB, free: 51.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007288/1.112, allocations: 1.215 MB / 0.6463 GB, free: 50.69 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.001011/1.113, allocations: 227.6 kB / 0.6465 GB, free: 50.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009248/1.122, allocations: 5.753 MB / 0.6521 GB, free: 44.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/1.122, allocations: 1.875 kB / 0.6521 GB, free: 44.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/1.125, allocations: 1.874 MB / 0.654 GB, free: 42.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005181/1.13, allocations: 0.5021 MB / 0.6544 GB, free: 42.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/1.155, allocations: 14.07 MB / 0.6682 GB, free: 28.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006253/1.162, allocations: 3.847 MB / 0.6719 GB, free: 24.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/1.163, allocations: 315.4 kB / 0.6722 GB, free: 23.99 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/1.163, allocations: 0 / 0.6722 GB, free: 23.99 MB / 446.1 MB Notification: Performance of Templates: time 0.3287/1.492, allocations: 90.26 MB / 0.7604 GB, free: 80.79 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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