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.0007852/0.0007852, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.0008327/0.0008327, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.131/1.131, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001982/0.0001982, allocations: 11.94 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0693/0.06951, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.1655/0.2351, allocations: 54 MB / 406.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0196/0.2547, allocations: 11.85 MB / 418.3 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00649/0.2612, allocations: 242.6 kB / 418.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009966/0.2622, allocations: 492.6 kB / 419.1 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.2657, allocations: 2.031 MB / 421.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.2673, allocations: 1.01 MB / 422.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006864/0.2742, allocations: 8.688 MB / 430.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007475/0.2816, allocations: 7.378 MB / 438.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.2832, allocations: 1.517 MB / 439.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002332/0.2855, allocations: 2.573 MB / 442.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002887/0.2858, allocations: 184 kB / 442.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.2876, allocations: 1.424 MB / 443.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.2892, allocations: 2.217 MB / 446.1 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.2908, allocations: 2.482 MB / 448.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005036/0.2959, allocations: 7.427 MB / 456 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2959, allocations: 7.938 kB / 456 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2959, allocations: 0 / 456 MB, free: 12.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.815e-05/0.296, allocations: 0 / 456 MB, free: 12.64 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.007034/0.303, allocations: 4.918 MB / 460.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.303, allocations: 8.031 kB / 460.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009765/0.3128, allocations: 2.599 MB / 463.5 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005406/0.3182, allocations: 3.737 MB / 467.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.3184, allocations: 316.2 kB / 467.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006652/0.3191, allocations: 431.6 kB / 468 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.3352, allocations: 12.44 MB / 480.4 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.932e-05/0.3353, allocations: 47.58 kB / 480.5 MB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/0.3357, allocations: 195.9 kB / 480.7 MB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002657/0.3384, allocations: 2.039 MB / 482.7 MB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01598/0.3544, allocations: 10.59 MB / 493.3 MB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/0.3925, allocations: 44.38 MB / 0.5251 GB, free: 8.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/0.4035, allocations: 4.882 MB / 0.5298 GB, free: 3.738 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.4057, allocations: 2.01 MB / 0.5318 GB, free: 1.723 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1383/0.544, allocations: 7.097 MB / 0.5387 GB, free: 149.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.5441, allocations: 53.53 kB / 0.5388 GB, free: 149.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.138e-06/0.5441, allocations: 0 / 0.5388 GB, free: 149.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05464/0.5988, allocations: 19.72 MB / 0.558 GB, free: 143.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.5988, allocations: 204.5 kB / 0.5582 GB, free: 143.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/0.6028, allocations: 4.473 MB / 0.5626 GB, free: 141.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.603, allocations: 58.2 kB / 0.5627 GB, free: 141.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.6041, allocations: 3.509 MB / 0.5661 GB, free: 137.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.6045, allocations: 0.84 MB / 0.5669 GB, free: 137.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.605, allocations: 0.575 MB / 0.5675 GB, free: 136.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.872e-05/0.6051, allocations: 301.1 kB / 0.5678 GB, free: 136.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.6074, allocations: 2.363 MB / 0.5701 GB, free: 133.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/0.6106, allocations: 6.167 MB / 0.5761 GB, free: 125.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005991/0.6166, allocations: 9.17 MB / 0.585 GB, free: 114.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.378e-05/0.6167, allocations: 40 kB / 0.5851 GB, free: 114.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01132/0.628, allocations: 9.551 MB / 0.5944 GB, free: 105.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.208e-05/0.6281, allocations: 64.98 kB / 0.5945 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.02e-05/0.6281, allocations: 136 kB / 0.5946 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003289/0.6314, allocations: 1.366 MB / 0.5959 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/0.6347, allocations: 1.467 MB / 0.5974 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008119/0.6428, allocations: 7.984 MB / 0.6052 GB, free: 94.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/0.6459, allocations: 359.4 kB / 0.6055 GB, free: 93.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/0.6463, allocations: 385.2 kB / 0.6059 GB, free: 93.3 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.002338/0.6486, allocations: 2.489 MB / 0.6083 GB, free: 90.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000364/0.649, allocations: 398.8 kB / 0.6087 GB, free: 90.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006404/0.6554, allocations: 4.116 MB / 0.6127 GB, free: 86.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.6554, allocations: 26.06 kB / 0.6127 GB, free: 86.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6554, allocations: 8 kB / 0.6127 GB, free: 86.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.6555, allocations: 15.95 kB / 0.6127 GB, free: 86.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.6682, allocations: 10.36 MB / 0.6229 GB, free: 75.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.6682, allocations: 10.38 kB / 0.6229 GB, free: 75.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.6694, allocations: 343.4 kB / 0.6232 GB, free: 75.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003075/0.6725, allocations: 1.153 MB / 0.6243 GB, free: 74.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.6726, allocations: 41.33 kB / 0.6244 GB, free: 74.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006998/0.6796, allocations: 6.673 MB / 0.6309 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.6797, allocations: 7.938 kB / 0.6309 GB, free: 67.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008117/0.6878, allocations: 6.919 MB / 0.6376 GB, free: 60.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004305/0.6882, allocations: 463.7 kB / 0.6381 GB, free: 59.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003486/0.6886, allocations: 36 kB / 0.6381 GB, free: 59.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.6899, allocations: 126 kB / 0.6382 GB, free: 59.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.6902, allocations: 141.1 kB / 0.6384 GB, free: 59.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.6903, allocations: 63.98 kB / 0.6384 GB, free: 59.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002517/0.6928, allocations: 2.803 MB / 0.6412 GB, free: 56.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6928, allocations: 0 / 0.6412 GB, free: 56.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003468/0.6963, allocations: 1.215 MB / 0.6424 GB, free: 55.55 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.0003777/0.6967, allocations: 239.5 kB / 0.6426 GB, free: 55.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005417/0.7021, allocations: 5.748 MB / 0.6482 GB, free: 49.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.7021, allocations: 0 / 0.6482 GB, free: 49.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.7039, allocations: 1.872 MB / 0.65 GB, free: 47.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/0.7084, allocations: 0.5083 MB / 0.6505 GB, free: 47.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.7202, allocations: 14.13 MB / 0.6643 GB, free: 32.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002773/0.723, allocations: 3.847 MB / 0.6681 GB, free: 29.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/0.7237, allocations: 311.4 kB / 0.6684 GB, free: 28.79 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7237, allocations: 3.938 kB / 0.6684 GB, free: 28.78 MB / 446.1 MB Notification: Performance of Templates: time 0.2051/0.9288, allocations: 89.25 MB / 0.7556 GB, free: 91.89 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