Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001429/0.001429, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 79.86 kB / 481.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4217, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01789/0.4396, allocations: 14.66 MB / 0.5453 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.4534, allocations: 5 MB / 0.5502 GB, free: 13.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004673/0.4581, allocations: 99.69 kB / 0.5503 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008309/0.4665, allocations: 4.143 MB / 0.5544 GB, free: 9.738 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.475, allocations: 2.314 MB / 0.5566 GB, free: 7.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003467/0.4785, allocations: 1.076 MB / 0.5577 GB, free: 6.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01535/0.4938, allocations: 7.15 MB / 0.5646 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008762/0.5026, allocations: 5.139 MB / 0.5697 GB, free: 9.977 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005608/0.5083, allocations: 2.22 MB / 0.5718 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005987/0.5143, allocations: 3.057 MB / 0.5748 GB, free: 4.684 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002229/0.5165, allocations: 500 kB / 0.5753 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004491/0.521, allocations: 1.362 MB / 0.5766 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005202/0.5263, allocations: 2.728 MB / 0.5793 GB, free: 100 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005416/0.5317, allocations: 3.123 MB / 0.5823 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.5442, allocations: 9.815 MB / 0.5919 GB, free: 3.105 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.5442, allocations: 0 / 0.5919 GB, free: 3.105 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5442, allocations: 0 / 0.5919 GB, free: 3.105 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002828/0.5445, allocations: 0 / 0.5919 GB, free: 3.105 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.01783/0.5624, allocations: 7.04 MB / 0.5988 GB, free: 11.97 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.58e-05/0.5625, allocations: 12.03 kB / 0.5988 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02499/0.5875, allocations: 3.355 MB / 0.6021 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01282/0.6003, allocations: 4.429 MB / 0.6064 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003915/0.6007, allocations: 324.8 kB / 0.6067 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002557/0.6033, allocations: 451.7 kB / 0.6072 GB, free: 3.352 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03253/0.6359, allocations: 13.08 MB / 0.6199 GB, free: 5.398 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004643/0.6364, allocations: 71.47 kB / 0.62 GB, free: 5.328 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002631/0.639, allocations: 207.8 kB / 0.6202 GB, free: 5.125 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005808/0.6449, allocations: 2.527 MB / 0.6227 GB, free: 2.598 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/0.672, allocations: 11.4 MB / 0.6338 GB, free: 7.188 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08121/0.7532, allocations: 52.83 MB / 0.6854 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/0.7673, allocations: 5.664 MB / 0.6909 GB, free: 11.03 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004717/0.772, allocations: 3.5 MB / 0.6943 GB, free: 7.52 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008256/0.7729, allocations: 0.6877 MB / 0.695 GB, free: 6.723 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.229e-05/0.773, allocations: 64.48 kB / 0.6951 GB, free: 6.648 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 6.993e-06/0.773, allocations: 0 / 0.6951 GB, free: 6.648 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4552/1.228, allocations: 36.78 MB / 0.731 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.228, allocations: 269.7 kB / 0.7312 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007204/1.236, allocations: 5.176 MB / 0.7363 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000865/1.237, allocations: 75.77 kB / 0.7364 GB, free: 155 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003389/1.24, allocations: 4.021 MB / 0.7403 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001998/1.242, allocations: 1.226 MB / 0.7415 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/1.245, allocations: 1.601 MB / 0.7431 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001057/1.245, allocations: 312.4 kB / 0.7434 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004902/1.25, allocations: 3.623 MB / 0.7469 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008056/1.258, allocations: 7.812 MB / 0.7545 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/1.271, allocations: 12.24 MB / 0.7665 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001243/1.271, allocations: 40 kB / 0.7665 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.0245/1.295, allocations: 13.76 MB / 0.78 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.296, allocations: 68 kB / 0.78 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/1.296, allocations: 144.9 kB / 0.7802 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006222/1.302, allocations: 2.754 MB / 0.7828 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006411/1.308, allocations: 1.778 MB / 0.7846 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02021/1.329, allocations: 17.82 MB / 0.802 GB, free: 91.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009024/1.338, allocations: 471.3 kB / 0.8024 GB, free: 90.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002004/1.34, allocations: 455.9 kB / 0.8029 GB, free: 90.12 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (948): * Single equations (assignments): 943 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007591/1.347, allocations: 2.743 MB / 0.8055 GB, free: 87.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002231/1.35, allocations: 0.4928 MB / 0.806 GB, free: 86.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.365, allocations: 8.047 MB / 0.8139 GB, free: 78.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.878e-05/1.365, allocations: 35.52 kB / 0.8139 GB, free: 78.72 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.75e-05/1.365, allocations: 12 kB / 0.8139 GB, free: 78.71 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.338e-05/1.365, allocations: 15.94 kB / 0.8139 GB, free: 78.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03581/1.401, allocations: 16.84 MB / 0.8304 GB, free: 61.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.84e-05/1.401, allocations: 7.938 kB / 0.8304 GB, free: 61.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002598/1.404, allocations: 0.4998 MB / 0.8309 GB, free: 61.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006043/1.41, allocations: 2.48 MB / 0.8333 GB, free: 58.79 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007558/1.411, allocations: 63.98 kB / 0.8334 GB, free: 58.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01789/1.428, allocations: 15.97 MB / 0.849 GB, free: 42.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/1.428, allocations: 11.94 kB / 0.849 GB, free: 42.47 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02127/1.45, allocations: 12.62 MB / 0.8613 GB, free: 29.65 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/1.452, allocations: 0.5603 MB / 0.8619 GB, free: 29.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002206/1.454, allocations: 60 kB / 0.8619 GB, free: 29.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00438/1.459, allocations: 223.7 kB / 0.8621 GB, free: 28.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000956/1.46, allocations: 201.5 kB / 0.8623 GB, free: 28.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004757/1.46, allocations: 91.89 kB / 0.8624 GB, free: 28.51 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006864/1.467, allocations: 3.268 MB / 0.8656 GB, free: 25.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.467, allocations: 0 / 0.8656 GB, free: 25.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01081/1.478, allocations: 1.523 MB / 0.8671 GB, free: 23.73 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001297/1.479, allocations: 218.6 kB / 0.8673 GB, free: 23.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.015/1.494, allocations: 8.911 MB / 0.876 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.467e-05/1.494, allocations: 0 / 0.876 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005967/1.5, allocations: 3.576 MB / 0.8795 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008257/1.509, allocations: 0.665 MB / 0.8801 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03293/1.541, allocations: 14.74 MB / 0.8945 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008251/1.55, allocations: 4.279 MB / 0.8987 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006617/1.556, allocations: 2.46 MB / 0.9011 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/1.558, allocations: 343.4 kB / 0.9014 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of SimCode: time 1.443e-06/1.558, allocations: 0 / 0.9014 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of Templates: time 0.4646/2.023, allocations: 65.06 MB / 0.965 GB, free: 205.8 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches