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.001265/0.001265, allocations: 112.4 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001424/0.001424, allocations: 204 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2008/0.2008, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 79.86 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2925, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01411/0.3066, allocations: 14.67 MB / 0.546 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009494/0.3162, allocations: 5.003 MB / 0.5509 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.3183, allocations: 99.69 kB / 0.551 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00655/0.3249, allocations: 4.143 MB / 0.555 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005487/0.3304, allocations: 2.381 MB / 0.5573 GB, free: 7.316 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.3327, allocations: 1.072 MB / 0.5584 GB, free: 6.242 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008243/0.341, allocations: 7.149 MB / 0.5654 GB, free: 15.08 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005047/0.346, allocations: 5.135 MB / 0.5704 GB, free: 9.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002848/0.3489, allocations: 2.243 MB / 0.5726 GB, free: 7.633 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.3523, allocations: 3.057 MB / 0.5756 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008036/0.3531, allocations: 500 kB / 0.576 GB, free: 4.078 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002173/0.3553, allocations: 1.362 MB / 0.5774 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002192/0.3575, allocations: 2.755 MB / 0.5801 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002932/0.3605, allocations: 3.123 MB / 0.5831 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008615/0.3691, allocations: 9.77 MB / 0.5927 GB, free: 3.012 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3691, allocations: 0 / 0.5927 GB, free: 3.012 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3691, allocations: 0 / 0.5927 GB, free: 3.012 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001582/0.3693, allocations: 0 / 0.5927 GB, free: 3.012 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.01281/0.3821, allocations: 6.867 MB / 0.5994 GB, free: 12.06 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3822, allocations: 8.031 kB / 0.5994 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02153/0.4037, allocations: 3.316 MB / 0.6026 GB, free: 8.727 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008511/0.4123, allocations: 4.411 MB / 0.6069 GB, free: 4.258 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.4125, allocations: 332.8 kB / 0.6072 GB, free: 3.93 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008752/0.4134, allocations: 443.6 kB / 0.6077 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01898/0.4324, allocations: 13.1 MB / 0.6204 GB, free: 5.527 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001745/0.4326, allocations: 67.42 kB / 0.6205 GB, free: 5.461 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000543/0.4331, allocations: 203.8 kB / 0.6207 GB, free: 5.262 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003917/0.437, allocations: 2.535 MB / 0.6232 GB, free: 2.727 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/0.4571, allocations: 11.38 MB / 0.6343 GB, free: 7.332 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05759/0.5148, allocations: 52.75 MB / 0.6858 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.5269, allocations: 5.656 MB / 0.6913 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003879/0.5308, allocations: 3.504 MB / 0.6947 GB, free: 7.742 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006439/0.5315, allocations: 0.6799 MB / 0.6954 GB, free: 6.953 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.5315, allocations: 64.5 kB / 0.6955 GB, free: 6.879 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 4.679e-06/0.5315, allocations: 0 / 0.6955 GB, free: 6.879 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.3193/0.8508, allocations: 36.49 MB / 0.7311 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.973e-05/0.8509, allocations: 272.8 kB / 0.7314 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00546/0.8564, allocations: 5.166 MB / 0.7364 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004939/0.8569, allocations: 78.19 kB / 0.7365 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001614/0.8585, allocations: 3.87 MB / 0.7403 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009294/0.8595, allocations: 1.175 MB / 0.7414 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/0.8611, allocations: 1.592 MB / 0.743 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.281e-05/0.8612, allocations: 309 kB / 0.7433 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004013/0.8652, allocations: 3.627 MB / 0.7468 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005271/0.8705, allocations: 7.802 MB / 0.7544 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.8808, allocations: 12.23 MB / 0.7664 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.335e-05/0.8809, allocations: 44 kB / 0.7664 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.0197/0.9006, allocations: 13.74 MB / 0.7798 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.105e-05/0.9007, allocations: 64 kB / 0.7799 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.9009, allocations: 144 kB / 0.78 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00554/0.9064, allocations: 2.754 MB / 0.7827 GB, free: 111.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004897/0.9113, allocations: 1.778 MB / 0.7845 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01651/0.9278, allocations: 17.81 MB / 0.8018 GB, free: 91.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005635/0.9335, allocations: 475 kB / 0.8023 GB, free: 90.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009899/0.9345, allocations: 459.9 kB / 0.8027 GB, free: 90.32 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.003701/0.9382, allocations: 2.735 MB / 0.8054 GB, free: 87.57 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009607/0.9392, allocations: 481.8 kB / 0.8059 GB, free: 87.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/0.9504, allocations: 8.039 MB / 0.8137 GB, free: 78.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.731e-05/0.9505, allocations: 36 kB / 0.8138 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.9505, allocations: 8.891 kB / 0.8138 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-05/0.9505, allocations: 15.94 kB / 0.8138 GB, free: 78.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/0.9748, allocations: 16.83 MB / 0.8302 GB, free: 62.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/0.9749, allocations: 11.94 kB / 0.8302 GB, free: 62.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/0.977, allocations: 0.4991 MB / 0.8307 GB, free: 61.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005228/0.9822, allocations: 2.488 MB / 0.8331 GB, free: 59.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/0.9826, allocations: 60 kB / 0.8332 GB, free: 58.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01484/0.9975, allocations: 15.96 MB / 0.8488 GB, free: 42.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.9975, allocations: 15.88 kB / 0.8488 GB, free: 42.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/1.013, allocations: 12.6 MB / 0.8611 GB, free: 29.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.014, allocations: 0.5261 MB / 0.8616 GB, free: 29.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005688/1.015, allocations: 63.98 kB / 0.8617 GB, free: 29.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/1.017, allocations: 215.7 kB / 0.8619 GB, free: 29.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/1.017, allocations: 205.5 kB / 0.8621 GB, free: 28.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/1.017, allocations: 87.98 kB / 0.8622 GB, free: 28.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00355/1.021, allocations: 3.268 MB / 0.8654 GB, free: 25.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.021, allocations: 0 / 0.8654 GB, free: 25.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005786/1.027, allocations: 1.526 MB / 0.8669 GB, free: 24.03 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.0005196/1.027, allocations: 213.4 kB / 0.8671 GB, free: 23.81 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01105/1.038, allocations: 8.907 MB / 0.8758 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/1.039, allocations: 0 / 0.8758 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004344/1.043, allocations: 3.572 MB / 0.8792 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/1.047, allocations: 0.6683 MB / 0.8799 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02109/1.068, allocations: 15.09 MB / 0.8946 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004964/1.073, allocations: 4.255 MB / 0.8988 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/1.074, allocations: 399.3 kB / 0.8992 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of SimCode: time 8.32e-07/1.074, allocations: 0 / 0.8992 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of Templates: time 0.3881/1.463, allocations: 135.4 MB / 1.031 GB, free: 137.4 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches