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.001218/0.001218, allocations: 117.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001305, allocations: 208.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 75.88 kB / 481.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4527/0.4543, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01982/0.4742, allocations: 14.67 MB / 0.5453 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.4916, allocations: 4.994 MB / 0.5502 GB, free: 14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006711/0.4984, allocations: 103.7 kB / 0.5503 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009542/0.508, allocations: 4.139 MB / 0.5543 GB, free: 9.742 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009066/0.5171, allocations: 2.396 MB / 0.5567 GB, free: 7.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003664/0.5208, allocations: 1.08 MB / 0.5577 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01474/0.5356, allocations: 7.15 MB / 0.5647 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01112/0.5468, allocations: 5.135 MB / 0.5697 GB, free: 9.898 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006374/0.5532, allocations: 2.235 MB / 0.5719 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007257/0.5605, allocations: 3.057 MB / 0.5749 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002623/0.5632, allocations: 496 kB / 0.5754 GB, free: 4.105 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005773/0.569, allocations: 1.362 MB / 0.5767 GB, free: 2.742 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005849/0.5749, allocations: 2.751 MB / 0.5794 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009482/0.5844, allocations: 3.127 MB / 0.5824 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01693/0.6014, allocations: 9.778 MB / 0.592 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.6014, allocations: 0 / 0.592 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6014, allocations: 0 / 0.592 GB, free: 3.031 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004719/0.6019, allocations: 4 kB / 0.592 GB, free: 3.027 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.02837/0.6303, allocations: 6.859 MB / 0.5987 GB, free: 12.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.6304, allocations: 8.031 kB / 0.5987 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02679/0.6572, allocations: 3.32 MB / 0.6019 GB, free: 8.746 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/0.6697, allocations: 4.403 MB / 0.6062 GB, free: 4.285 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004203/0.6701, allocations: 328.8 kB / 0.6066 GB, free: 3.961 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002232/0.6724, allocations: 451.6 kB / 0.607 GB, free: 3.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03188/0.7043, allocations: 13.08 MB / 0.6198 GB, free: 5.562 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004409/0.7048, allocations: 75.34 kB / 0.6198 GB, free: 5.488 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/0.7068, allocations: 207.8 kB / 0.62 GB, free: 5.285 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005138/0.7119, allocations: 2.527 MB / 0.6225 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02692/0.7389, allocations: 11.39 MB / 0.6336 GB, free: 7.355 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08186/0.8208, allocations: 52.75 MB / 0.6851 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.8357, allocations: 5.649 MB / 0.6907 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005011/0.8407, allocations: 3.503 MB / 0.6941 GB, free: 7.777 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008915/0.8416, allocations: 0.6877 MB / 0.6948 GB, free: 6.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.507e-05/0.8418, allocations: 60.55 kB / 0.6948 GB, free: 6.91 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 6.563e-06/0.8418, allocations: 0 / 0.6948 GB, free: 6.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.5031/1.345, allocations: 36.49 MB / 0.7304 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/1.345, allocations: 265.9 kB / 0.7307 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007114/1.352, allocations: 5.171 MB / 0.7357 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007528/1.353, allocations: 76 kB / 0.7358 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002427/1.355, allocations: 3.873 MB / 0.7396 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/1.357, allocations: 1.172 MB / 0.7407 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001971/1.359, allocations: 1.589 MB / 0.7423 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.044e-05/1.359, allocations: 312.7 kB / 0.7426 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004462/1.363, allocations: 3.62 MB / 0.7461 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006003/1.369, allocations: 7.811 MB / 0.7538 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/1.382, allocations: 12.24 MB / 0.7657 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001667/1.382, allocations: 48 kB / 0.7658 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.0256/1.408, allocations: 13.73 MB / 0.7792 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002009/1.408, allocations: 68 kB / 0.7792 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002748/1.408, allocations: 144 kB / 0.7794 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007177/1.415, allocations: 2.75 MB / 0.7821 GB, free: 111.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006478/1.422, allocations: 1.782 MB / 0.7838 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0209/1.443, allocations: 17.79 MB / 0.8012 GB, free: 91.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008632/1.451, allocations: 479.1 kB / 0.8016 GB, free: 90.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/1.454, allocations: 464.6 kB / 0.8021 GB, free: 90.35 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.008253/1.462, allocations: 2.739 MB / 0.8047 GB, free: 87.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/1.465, allocations: 485.8 kB / 0.8052 GB, free: 87.12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01612/1.481, allocations: 8.043 MB / 0.8131 GB, free: 79.01 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-05/1.481, allocations: 32 kB / 0.8131 GB, free: 78.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.616e-05/1.481, allocations: 10.91 kB / 0.8131 GB, free: 78.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.559e-05/1.481, allocations: 20.78 kB / 0.8131 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03709/1.518, allocations: 16.83 MB / 0.8296 GB, free: 62.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.231e-05/1.518, allocations: 7.938 kB / 0.8296 GB, free: 62.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.521, allocations: 0.496 MB / 0.83 GB, free: 61.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006693/1.528, allocations: 2.483 MB / 0.8325 GB, free: 59.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001349/1.529, allocations: 71.98 kB / 0.8325 GB, free: 59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01974/1.549, allocations: 15.96 MB / 0.8481 GB, free: 42.76 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/1.549, allocations: 8 kB / 0.8481 GB, free: 42.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/1.569, allocations: 12.6 MB / 0.8604 GB, free: 29.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.571, allocations: 0.5339 MB / 0.861 GB, free: 29.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002133/1.573, allocations: 56 kB / 0.861 GB, free: 29.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004037/1.578, allocations: 231.2 kB / 0.8612 GB, free: 29.11 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001085/1.579, allocations: 209.5 kB / 0.8614 GB, free: 28.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005841/1.579, allocations: 87.98 kB / 0.8615 GB, free: 28.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006599/1.586, allocations: 3.264 MB / 0.8647 GB, free: 25.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.4e-07/1.586, allocations: 0 / 0.8647 GB, free: 25.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01074/1.597, allocations: 1.522 MB / 0.8662 GB, free: 24.05 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.001536/1.598, allocations: 209 kB / 0.8664 GB, free: 23.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0157/1.614, allocations: 8.91 MB / 0.8751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/1.614, allocations: 4.125 kB / 0.8751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005826/1.62, allocations: 3.572 MB / 0.8786 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007196/1.627, allocations: 0.6669 MB / 0.8792 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03388/1.661, allocations: 14.52 MB / 0.8934 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/1.672, allocations: 4.279 MB / 0.8976 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.008924/1.681, allocations: 2.46 MB / 0.9 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002136/1.683, allocations: 343.4 kB / 0.9003 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of SimCode: time 1.232e-06/1.683, allocations: 0 / 0.9003 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of Templates: time 0.4617/2.144, allocations: 65.05 MB / 0.9639 GB, free: 206.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/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