Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001115/0.001115, allocations: 109.2 kB / 17.75 MB, free: 5.309 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.00114/0.00114, allocations: 184.3 kB / 18.67 MB, free: 4.395 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009999/0.0009999, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2112, allocations: 49.42 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01419/0.2254, allocations: 15.03 MB / 416.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00826/0.2337, allocations: 4.818 MB / 421.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009328/0.2346, allocations: 91.75 kB / 421.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004965/0.2396, allocations: 3.169 MB / 424.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004304/0.2439, allocations: 2.623 MB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.2456, allocations: 0.9866 MB / 428.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006838/0.2524, allocations: 6.967 MB / 435.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003848/0.2563, allocations: 4.335 MB / 439.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002205/0.2585, allocations: 2.223 MB / 441.7 MB, free: 440 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00325/0.2618, allocations: 3.24 MB / 444.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007073/0.2625, allocations: 484 kB / 445.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002287/0.2648, allocations: 1.506 MB / 446.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00217/0.267, allocations: 2.891 MB / 449.8 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002548/0.2695, allocations: 3.243 MB / 453 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00826/0.2778, allocations: 10.44 MB / 463.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2778, allocations: 0 / 463.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2778, allocations: 0 / 463.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001026/0.2779, allocations: 4 kB / 463.4 MB, free: 10.56 MB / 382.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.01213/0.2901, allocations: 7.286 MB / 470.7 MB, free: 3.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2901, allocations: 8.031 kB / 470.7 MB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01634/0.3065, allocations: 3.939 MB / 474.7 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007991/0.3145, allocations: 4.169 MB / 478.9 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.3147, allocations: 320.4 kB / 479.2 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000854/0.3156, allocations: 435.6 kB / 479.6 MB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02178/0.3373, allocations: 15.72 MB / 495.3 MB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/0.3375, allocations: 51.53 kB / 495.4 MB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005677/0.3381, allocations: 203.8 kB / 495.6 MB, free: 9.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004805/0.3429, allocations: 3.227 MB / 498.8 MB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.3658, allocations: 14.12 MB / 0.5009 GB, free: 7.984 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2417/0.6075, allocations: 57.5 MB / 0.557 GB, free: 91.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.6197, allocations: 6.563 MB / 0.5634 GB, free: 89.88 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003482/0.6232, allocations: 3.694 MB / 0.567 GB, free: 88.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0181/0.6413, allocations: 14.62 MB / 0.5813 GB, free: 80.85 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.6414, allocations: 65.58 kB / 0.5814 GB, free: 80.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 4.919e-06/0.6414, allocations: 0 / 0.5814 GB, free: 80.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.139/0.7804, allocations: 42.36 MB / 0.6228 GB, free: 39.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.7805, allocations: 222 kB / 0.623 GB, free: 39.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005595/0.7861, allocations: 5.474 MB / 0.6283 GB, free: 33.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005831/0.7867, allocations: 69.7 kB / 0.6284 GB, free: 33.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.7883, allocations: 4.356 MB / 0.6326 GB, free: 29.31 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008303/0.7891, allocations: 1.248 MB / 0.6338 GB, free: 28.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002065/0.7912, allocations: 1.862 MB / 0.6357 GB, free: 26.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.316e-05/0.7912, allocations: 301.1 kB / 0.636 GB, free: 25.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005214/0.7964, allocations: 4.804 MB / 0.6406 GB, free: 21.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006652/0.8031, allocations: 9.811 MB / 0.6502 GB, free: 8.902 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/0.8177, allocations: 15.57 MB / 0.6654 GB, free: 6.945 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.697e-05/0.8178, allocations: 48 kB / 0.6655 GB, free: 6.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04269/0.8605, allocations: 19.57 MB / 0.6846 GB, free: 3.281 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.8607, allocations: 79.98 kB / 0.6847 GB, free: 3.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/0.8609, allocations: 176 kB / 0.6848 GB, free: 3.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02457/0.8855, allocations: 5.936 MB / 0.6906 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007562/0.8931, allocations: 2.109 MB / 0.6927 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03538/0.9285, allocations: 26.14 MB / 0.7182 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00731/0.9358, allocations: 0.5683 MB / 0.7188 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/0.9371, allocations: 0.5077 MB / 0.7193 GB, free: 15.47 MB / 0.5294 GB 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.005277/0.9424, allocations: 3.098 MB / 0.7223 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/0.9435, allocations: 0.4896 MB / 0.7228 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0339/0.9775, allocations: 12.93 MB / 0.7354 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-05/0.9775, allocations: 15.89 kB / 0.7354 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.9776, allocations: 0 / 0.7354 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.9788, allocations: 0.5258 MB / 0.7359 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009976/0.9798, allocations: 51.14 kB / 0.736 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003044/0.9829, allocations: 255.6 kB / 0.7362 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006855/0.9836, allocations: 213.5 kB / 0.7364 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02167/1.005, allocations: 10.46 MB / 0.7466 GB, free: 3.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1983/1.204, allocations: 12.85 MB / 0.7592 GB, free: 202 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003678/1.207, allocations: 3.634 MB / 0.7627 GB, free: 200.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003751/1.211, allocations: 3.399 MB / 0.7661 GB, free: 199.5 MB / 0.545 GB Notification: Performance of Backend: time 4.51e-07/1.211, allocations: 0 / 0.7661 GB, free: 199.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01142/1.223, allocations: 7.966 MB / 0.7738 GB, free: 196.5 MB / 0.545 GB Notification: Performance of SimCode: time 0.01559/1.238, allocations: 13.39 MB / 0.7869 GB, free: 186.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1136/1.352, allocations: 91.39 MB / 0.8762 GB, free: 97.29 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches