Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 114.5 kB / 18.41 MB, free: 4.688 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.001255/0.001255, allocations: 190.1 kB / 19.35 MB, free: 3.762 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.243/1.243, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001289/0.001289, allocations: 51.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07097/0.07227, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1619/0.2342, allocations: 15.08 MB / 390.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0084/0.2427, allocations: 4.821 MB / 395.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.2448, allocations: 91.75 kB / 395.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004897/0.2497, allocations: 3.166 MB / 399 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005729/0.2555, allocations: 2.631 MB / 401.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.2574, allocations: 0.9892 MB / 402.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00755/0.265, allocations: 6.648 MB / 409.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004015/0.269, allocations: 4.352 MB / 413.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002521/0.2715, allocations: 2.24 MB / 415.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003328/0.2749, allocations: 3.246 MB / 419.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007015/0.2756, allocations: 484 kB / 419.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002356/0.2779, allocations: 1.494 MB / 421.1 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002131/0.2801, allocations: 2.891 MB / 423.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00248/0.2826, allocations: 3.262 MB / 427.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00919/0.2918, allocations: 10.49 MB / 437.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2918, allocations: 0 / 437.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2918, allocations: 0 / 437.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.53e-05/0.2919, allocations: 0 / 437.7 MB, free: 1.508 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01284/0.3048, allocations: 7.48 MB / 445.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3048, allocations: 8.031 kB / 445.2 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01538/0.3202, allocations: 3.982 MB / 449.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008049/0.3283, allocations: 4.292 MB / 453.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002265/0.3285, allocations: 316.6 kB / 453.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009918/0.3295, allocations: 431.6 kB / 454.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02343/0.3529, allocations: 15.71 MB / 469.9 MB, free: 204 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001634/0.3531, allocations: 63.47 kB / 470 MB, free: 140 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008705/0.354, allocations: 203.9 kB / 470.2 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004857/0.3589, allocations: 3.22 MB / 473.4 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.3835, allocations: 14.13 MB / 487.5 MB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06555/0.4491, allocations: 57.59 MB / 0.5323 GB, free: 3.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01345/0.4626, allocations: 6.565 MB / 0.5387 GB, free: 12.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004577/0.4672, allocations: 3.688 MB / 0.5423 GB, free: 8.891 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1714/0.6386, allocations: 14.66 MB / 0.5566 GB, free: 144.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.6387, allocations: 64.75 kB / 0.5567 GB, free: 144.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 5.681e-06/0.6387, allocations: 0 / 0.5567 GB, free: 144.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1325/0.7712, allocations: 42.72 MB / 0.5984 GB, free: 126.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.7713, allocations: 213.9 kB / 0.5986 GB, free: 126 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005764/0.7771, allocations: 5.51 MB / 0.604 GB, free: 120.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005656/0.7776, allocations: 73.7 kB / 0.6041 GB, free: 120.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.7793, allocations: 4.531 MB / 0.6085 GB, free: 116.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000971/0.7803, allocations: 1.316 MB / 0.6098 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002095/0.7824, allocations: 1.865 MB / 0.6116 GB, free: 113.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.631e-05/0.7824, allocations: 309.1 kB / 0.6119 GB, free: 113 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00541/0.7878, allocations: 4.808 MB / 0.6166 GB, free: 108.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00655/0.7944, allocations: 9.801 MB / 0.6262 GB, free: 95.89 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/0.8074, allocations: 15.58 MB / 0.6414 GB, free: 77.85 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.958e-05/0.8075, allocations: 52 kB / 0.6414 GB, free: 77.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03691/0.8444, allocations: 19.59 MB / 0.6606 GB, free: 58.17 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/0.8445, allocations: 80.94 kB / 0.6606 GB, free: 58.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.8447, allocations: 175.5 kB / 0.6608 GB, free: 57.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02105/0.8657, allocations: 5.94 MB / 0.6666 GB, free: 51.97 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006877/0.8726, allocations: 2.113 MB / 0.6687 GB, free: 49.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02863/0.9013, allocations: 26.16 MB / 0.6942 GB, free: 23.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007216/0.9085, allocations: 0.5579 MB / 0.6948 GB, free: 22.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/0.9099, allocations: 0.5113 MB / 0.6953 GB, free: 22.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004936/0.9149, allocations: 3.104 MB / 0.6983 GB, free: 19.22 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/0.916, allocations: 0.5148 MB / 0.6988 GB, free: 18.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02896/0.945, allocations: 12.94 MB / 0.7114 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-05/0.9451, allocations: 11.95 kB / 0.7114 GB, free: 5.691 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.9451, allocations: 0 / 0.7114 GB, free: 5.691 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00286/0.948, allocations: 1.329 MB / 0.7127 GB, free: 4.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/0.9493, allocations: 48 kB / 0.7128 GB, free: 4.293 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00343/0.9528, allocations: 263.5 kB / 0.713 GB, free: 4.035 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008435/0.9536, allocations: 205.7 kB / 0.7132 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0205/0.9741, allocations: 10.46 MB / 0.7235 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1839/1.158, allocations: 12.88 MB / 0.736 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004711/1.163, allocations: 3.63 MB / 0.7396 GB, free: 143.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005764/1.169, allocations: 3.419 MB / 0.7429 GB, free: 142.2 MB / 494.1 MB Notification: Performance of Backend: time 4.31e-07/1.169, allocations: 1.594 kB / 0.7429 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01543/1.184, allocations: 7.964 MB / 0.7507 GB, free: 139.3 MB / 494.1 MB Notification: Performance of SimCode: time 0.02069/1.205, allocations: 13.64 MB / 0.764 GB, free: 133.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1122/1.317, allocations: 91.49 MB / 0.8534 GB, free: 54.74 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches