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.001095/0.001095, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.0009945/0.0009946, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.333/1.333, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001266/0.001266, allocations: 55.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08296, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01277/0.09575, allocations: 13.52 MB / 342.2 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009329/0.1051, allocations: 4.87 MB / 347.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.1067, allocations: 87.75 kB / 347.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006635/0.1133, allocations: 4.19 MB / 351.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.1182, allocations: 2.144 MB / 353.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002355/0.1206, allocations: 1.107 MB / 354.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007172/0.1277, allocations: 5.631 MB / 360.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006618/0.1344, allocations: 5.324 MB / 365.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003914/0.1383, allocations: 2.162 MB / 367.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004407/0.1428, allocations: 2.87 MB / 370.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.1443, allocations: 0.4922 MB / 371.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004114/0.1484, allocations: 1.631 MB / 372.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003201/0.1517, allocations: 2.58 MB / 375.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005021/0.1567, allocations: 2.902 MB / 378.2 MB, free: 2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1711/0.3279, allocations: 9.531 MB / 387.8 MB, free: 25.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3279, allocations: 0 / 387.8 MB, free: 25.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3279, allocations: 1.641 kB / 387.8 MB, free: 25.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002637/0.3282, allocations: 1.031 kB / 387.8 MB, free: 25.76 MB / 318.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.01636/0.3446, allocations: 6.03 MB / 393.8 MB, free: 23.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3446, allocations: 10.22 kB / 393.8 MB, free: 23.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01161/0.3562, allocations: 2.536 MB / 396.3 MB, free: 23.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.367, allocations: 3.928 MB / 400.3 MB, free: 22.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/0.3674, allocations: 305.2 kB / 400.6 MB, free: 22.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002328/0.3697, allocations: 435.5 kB / 401 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/0.3906, allocations: 12.41 MB / 413.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.3907, allocations: 59.94 kB / 413.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004769/0.3912, allocations: 188.8 kB / 413.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002481/0.3937, allocations: 2.029 MB / 415.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01753/0.4113, allocations: 10.56 MB / 426.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0559/0.4672, allocations: 44.13 MB / 470.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/0.4795, allocations: 4.84 MB / 475.2 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002691/0.4822, allocations: 2.016 MB / 477.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.4936, allocations: 7.106 MB / 484.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.4937, allocations: 54.56 kB / 484.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.25e-06/0.4937, allocations: 4 kB / 484.4 MB, free: 9.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06424/0.5579, allocations: 19.65 MB / 0.4922 GB, free: 5.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.247e-05/0.5581, allocations: 205.9 kB / 0.4924 GB, free: 5.461 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/0.564, allocations: 4.488 MB / 0.4968 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003653/0.5644, allocations: 61.69 kB / 0.4969 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.5666, allocations: 3.518 MB / 0.5003 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008653/0.5675, allocations: 0.8426 MB / 0.5011 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00167/0.5692, allocations: 1.337 MB / 0.5024 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.5693, allocations: 301.1 kB / 0.5027 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003309/0.5726, allocations: 2.363 MB / 0.505 GB, free: 8.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005568/0.5782, allocations: 6.161 MB / 0.511 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.5883, allocations: 9.172 MB / 0.52 GB, free: 6.098 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.671e-05/0.5885, allocations: 40 kB / 0.52 GB, free: 6.059 MB / 430.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.1916/0.7801, allocations: 9.55 MB / 0.5294 GB, free: 141.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.7802, allocations: 61.97 kB / 0.5294 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/0.7804, allocations: 136.5 kB / 0.5296 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/0.7846, allocations: 1.367 MB / 0.5309 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004971/0.7896, allocations: 1.478 MB / 0.5323 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.8, allocations: 8.507 MB / 0.5406 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0057/0.8057, allocations: 345.9 kB / 0.541 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/0.807, allocations: 392.8 kB / 0.5413 GB, free: 138.3 MB / 430.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.005221/0.8123, allocations: 2.49 MB / 0.5438 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000955/0.8132, allocations: 401.5 kB / 0.5442 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00775/0.821, allocations: 4.122 MB / 0.5482 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.254e-05/0.8211, allocations: 29.77 kB / 0.5482 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/0.8211, allocations: 10.5 kB / 0.5482 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/0.8211, allocations: 7.641 kB / 0.5482 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/0.8394, allocations: 10.29 MB / 0.5583 GB, free: 129.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.8395, allocations: 15.92 kB / 0.5583 GB, free: 129.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/0.8409, allocations: 345.8 kB / 0.5586 GB, free: 129.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003362/0.8443, allocations: 1.15 MB / 0.5597 GB, free: 128.1 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002069/0.8445, allocations: 41.09 kB / 0.5598 GB, free: 128.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008135/0.8527, allocations: 7.12 MB / 0.5667 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.8527, allocations: 7.562 kB / 0.5667 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009314/0.862, allocations: 6.906 MB / 0.5735 GB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/0.8642, allocations: 0.7383 MB / 0.5742 GB, free: 113.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005253/0.8647, allocations: 43.98 kB / 0.5742 GB, free: 113.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.8663, allocations: 105.7 kB / 0.5743 GB, free: 113.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003146/0.8667, allocations: 148.2 kB / 0.5745 GB, free: 113.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.8668, allocations: 67.98 kB / 0.5746 GB, free: 113.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003469/0.8703, allocations: 2.815 MB / 0.5773 GB, free: 110.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8703, allocations: 0 / 0.5773 GB, free: 110.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00515/0.8754, allocations: 1.219 MB / 0.5785 GB, free: 109.1 MB / 430.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.0005446/0.876, allocations: 239.1 kB / 0.5787 GB, free: 108.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007079/0.8831, allocations: 5.77 MB / 0.5844 GB, free: 103.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.8831, allocations: 4.172 kB / 0.5844 GB, free: 103.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.8853, allocations: 1.871 MB / 0.5862 GB, free: 101.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/0.8886, allocations: 0.5345 MB / 0.5867 GB, free: 100.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.9052, allocations: 11.07 MB / 0.5975 GB, free: 89.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003638/0.9089, allocations: 3.865 MB / 0.6013 GB, free: 85.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003994/0.9129, allocations: 1.926 MB / 0.6032 GB, free: 83.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00072/0.9137, allocations: 275.4 kB / 0.6034 GB, free: 83.63 MB / 430.1 MB Notification: Performance of SimCode: time 6.52e-07/0.9137, allocations: 0 / 0.6034 GB, free: 83.63 MB / 430.1 MB Notification: Performance of Templates: time 0.07022/0.9839, allocations: 40.34 MB / 0.6428 GB, free: 43.41 MB / 430.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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