Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001632/0.001633, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 98.06 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3567/0.3567, allocations: 44.13 MB / 386.1 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001082, allocations: 55.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.314, allocations: 60.81 MB / 0.5064 GB, free: 38.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.05642/0.3705, allocations: 74.23 MB / 0.5789 GB, free: 1.035 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03649/0.407, allocations: 14.94 MB / 0.5935 GB, free: 5.723 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01986/0.4269, allocations: 327.2 kB / 0.5938 GB, free: 5.402 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008598/0.4356, allocations: 4.148 MB / 0.5978 GB, free: 2.031 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007103/0.4428, allocations: 2.223 MB / 0.6 GB, free: 15.98 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.4458, allocations: 0.9906 MB / 0.601 GB, free: 15 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.4581, allocations: 9.888 MB / 0.6106 GB, free: 5.09 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007/0.4652, allocations: 5.013 MB / 0.6155 GB, free: 8 kB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.469, allocations: 1.989 MB / 0.6175 GB, free: 14.01 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005239/0.4742, allocations: 3.271 MB / 0.6207 GB, free: 10.73 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001697/0.476, allocations: 344 kB / 0.621 GB, free: 10.39 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003347/0.4793, allocations: 1.287 MB / 0.6222 GB, free: 9.105 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003429/0.4828, allocations: 2.665 MB / 0.6248 GB, free: 6.434 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005421/0.4882, allocations: 3.033 MB / 0.6278 GB, free: 3.383 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.5001, allocations: 9.528 MB / 0.6371 GB, free: 9.82 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.5001, allocations: 4 kB / 0.6371 GB, free: 9.816 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5002, allocations: 0 / 0.6371 GB, free: 9.816 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003337/0.5005, allocations: 0 / 0.6371 GB, free: 9.816 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01749/0.518, allocations: 6.902 MB / 0.6439 GB, free: 2.832 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.5181, allocations: 8.031 kB / 0.6439 GB, free: 2.824 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02851/0.5466, allocations: 3.343 MB / 0.6471 GB, free: 15.47 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/0.559, allocations: 4.419 MB / 0.6514 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003664/0.5594, allocations: 324.8 kB / 0.6518 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001906/0.5614, allocations: 455.6 kB / 0.6522 GB, free: 10.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02351/0.5849, allocations: 13.28 MB / 0.6652 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001644/0.5851, allocations: 67.42 kB / 0.6652 GB, free: 11.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004902/0.5856, allocations: 207.8 kB / 0.6654 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004292/0.5899, allocations: 2.593 MB / 0.6679 GB, free: 9.188 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.293/0.883, allocations: 11.54 MB / 0.6792 GB, free: 127.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0669/0.9499, allocations: 53.46 MB / 0.7314 GB, free: 91.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01482/0.9648, allocations: 5.652 MB / 0.7369 GB, free: 89.13 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005301/0.9702, allocations: 3.5 MB / 0.7404 GB, free: 87.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006859/0.9709, allocations: 0.693 MB / 0.741 GB, free: 87.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.9709, allocations: 66.09 kB / 0.7411 GB, free: 86.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 6.592e-06/0.9709, allocations: 0 / 0.7411 GB, free: 86.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=315): time 0.08985/1.061, allocations: 36.53 MB / 0.7768 GB, free: 58.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/1.061, allocations: 265.3 kB / 0.777 GB, free: 58.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006405/1.067, allocations: 5.221 MB / 0.7821 GB, free: 52.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00085/1.068, allocations: 85.45 kB / 0.7822 GB, free: 52.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/1.07, allocations: 3.91 MB / 0.786 GB, free: 48.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/1.072, allocations: 1.171 MB / 0.7872 GB, free: 47.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/1.073, allocations: 1.602 MB / 0.7887 GB, free: 46.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.489e-05/1.074, allocations: 305.1 kB / 0.789 GB, free: 45.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004054/1.078, allocations: 3.631 MB / 0.7926 GB, free: 42.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005638/1.083, allocations: 7.834 MB / 0.8002 GB, free: 32.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/1.095, allocations: 12.27 MB / 0.8122 GB, free: 17.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.063e-05/1.095, allocations: 40 kB / 0.8122 GB, free: 17.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.0206/1.115, allocations: 13.75 MB / 0.8257 GB, free: 4.031 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.959e-05/1.116, allocations: 71.94 kB / 0.8257 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.975e-05/1.116, allocations: 148.1 kB / 0.8259 GB, free: 3.816 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006088/1.122, allocations: 2.754 MB / 0.8286 GB, free: 1.055 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005611/1.127, allocations: 1.786 MB / 0.8303 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0216/1.149, allocations: 16.61 MB / 0.8465 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00596/1.155, allocations: 475.2 kB / 0.847 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.156, allocations: 456.2 kB / 0.8474 GB, free: 13.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.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 (951): * Single equations (assignments): 946 * 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.004479/1.161, allocations: 2.772 MB / 0.8501 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008605/1.162, allocations: 481.8 kB / 0.8506 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.176, allocations: 8.052 MB / 0.8585 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.257e-05/1.176, allocations: 32 kB / 0.8585 GB, free: 2.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/1.176, allocations: 15.94 kB / 0.8585 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.991e-05/1.176, allocations: 15.94 kB / 0.8585 GB, free: 2.039 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03174/1.208, allocations: 17.15 MB / 0.8753 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-05/1.208, allocations: 8 kB / 0.8753 GB, free: 0.7148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002432/1.21, allocations: 0.4922 MB / 0.8758 GB, free: 228 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2409/1.451, allocations: 2.484 MB / 0.8782 GB, free: 163 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008543/1.452, allocations: 63.94 kB / 0.8782 GB, free: 163 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01719/1.469, allocations: 14.79 MB / 0.8927 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/1.469, allocations: 7.031 kB / 0.8927 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1487/1.618, allocations: 89.79 MB / 0.9804 GB, free: 95.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/1.62, allocations: 0.5444 MB / 0.9809 GB, free: 94.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001818/1.622, allocations: 59.94 kB / 0.981 GB, free: 94.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003707/1.626, allocations: 227.6 kB / 0.9812 GB, free: 94.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/1.627, allocations: 207.6 kB / 0.9814 GB, free: 94.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002789/1.627, allocations: 91.36 kB / 0.9815 GB, free: 94.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005069/1.632, allocations: 3.301 MB / 0.9847 GB, free: 91.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/1.632, allocations: 0 / 0.9847 GB, free: 91.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0106/1.643, allocations: 2.118 MB / 0.9868 GB, free: 88.91 MB / 0.5261 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.000893/1.644, allocations: 204.2 kB / 0.987 GB, free: 88.71 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01262/1.656, allocations: 8.877 MB / 0.9956 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/1.656, allocations: 4 kB / 0.9956 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004749/1.661, allocations: 3.557 MB / 0.9991 GB, free: 76.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005287/1.666, allocations: 0.6554 MB / 0.9997 GB, free: 75.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03093/1.697, allocations: 20.13 MB / 1.019 GB, free: 55.44 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006437/1.704, allocations: 4.442 MB / 1.024 GB, free: 50.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006923/1.711, allocations: 2.519 MB / 1.026 GB, free: 48.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/1.713, allocations: 363.3 kB / 1.027 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/1.713, allocations: 0 / 1.027 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of Templates: time 0.3842/2.097, allocations: 91.24 MB / 1.116 GB, free: 138.3 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches