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.0009244/0.0009244, allocations: 98.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001099, allocations: 203.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2543/0.2543, allocations: 45.92 MB / 344 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002963, allocations: 8 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1624, allocations: 63.47 MB / 481.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3497/0.5122, allocations: 63.53 MB / 0.5321 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03988/0.5521, allocations: 14.95 MB / 0.5467 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02391/0.5761, allocations: 327.9 kB / 0.5471 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01613/0.5923, allocations: 3.183 MB / 0.5502 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03992/0.6322, allocations: 9.095 MB / 0.559 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006513/0.6388, allocations: 0.9072 MB / 0.5599 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07603/0.7148, allocations: 49.16 MB / 0.6079 GB, free: 5.906 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0144/0.7293, allocations: 6.23 MB / 0.614 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004928/0.7342, allocations: 1.46 MB / 0.6154 GB, free: 14.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005522/0.7398, allocations: 2.009 MB / 0.6174 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001864/0.7417, allocations: 207.9 kB / 0.6176 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003529/0.7453, allocations: 0.9598 MB / 0.6185 GB, free: 10.98 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003204/0.7485, allocations: 2.244 MB / 0.6207 GB, free: 8.727 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.7507, allocations: 1.17 MB / 0.6219 GB, free: 7.547 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.7622, allocations: 7.976 MB / 0.6297 GB, free: 15.55 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.7622, allocations: 0 / 0.6297 GB, free: 15.55 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.619e-06/0.7623, allocations: 0 / 0.6297 GB, free: 15.55 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005273/0.7628, allocations: 0 / 0.6297 GB, free: 15.55 MB / 478.1 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.02213/0.7849, allocations: 6.263 MB / 0.6358 GB, free: 9.207 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.785, allocations: 8.031 kB / 0.6358 GB, free: 9.199 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1674/0.9524, allocations: 14.74 MB / 0.6502 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.9669, allocations: 4.604 MB / 0.6547 GB, free: 5.746 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003315/0.9673, allocations: 332.5 kB / 0.655 GB, free: 5.418 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002022/0.9693, allocations: 447.5 kB / 0.6554 GB, free: 4.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0288/0.9982, allocations: 13.3 MB / 0.6684 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003569/0.9986, allocations: 71.34 kB / 0.6685 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001432/1, allocations: 211.8 kB / 0.6687 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0051/1.005, allocations: 2.593 MB / 0.6712 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02756/1.033, allocations: 11.45 MB / 0.6824 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3878/1.421, allocations: 52.96 MB / 0.7341 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01646/1.437, allocations: 5.707 MB / 0.7397 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000984/1.438, allocations: 0.6858 MB / 0.7404 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.771e-05/1.438, allocations: 62.2 kB / 0.7404 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.933e-06/1.438, allocations: 3.812 kB / 0.7404 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.09633/1.535, allocations: 36.19 MB / 0.7758 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.535, allocations: 270.7 kB / 0.776 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007224/1.542, allocations: 5.575 MB / 0.7815 GB, free: 121.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.543, allocations: 69.7 kB / 0.7815 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002513/1.546, allocations: 3.966 MB / 0.7854 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001848/1.547, allocations: 1.169 MB / 0.7866 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003899/1.548, allocations: 148 kB / 0.7867 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003315/1.548, allocations: 0.6243 MB / 0.7873 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003999/1.552, allocations: 3.378 MB / 0.7906 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/1.558, allocations: 7.533 MB / 0.798 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006977/1.565, allocations: 4.949 MB / 0.8028 GB, free: 97.78 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/1.565, allocations: 44 kB / 0.8028 GB, free: 97.74 MB / 0.5294 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02188/1.587, allocations: 12.7 MB / 0.8152 GB, free: 84.98 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/1.587, allocations: 64 kB / 0.8153 GB, free: 84.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002354/1.587, allocations: 148.1 kB / 0.8154 GB, free: 84.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005058/1.592, allocations: 2.26 MB / 0.8176 GB, free: 82.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005714/1.598, allocations: 1.727 MB / 0.8193 GB, free: 80.78 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/1.615, allocations: 15.76 MB / 0.8347 GB, free: 64.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007959/1.623, allocations: 460.1 kB / 0.8352 GB, free: 64.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/1.625, allocations: 444.6 kB / 0.8356 GB, free: 63.88 MB / 0.5294 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 (909): * Single equations (assignments): 904 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005353/1.63, allocations: 2.765 MB / 0.8383 GB, free: 61.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.631, allocations: 493.7 kB / 0.8388 GB, free: 60.61 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/1.642, allocations: 7.288 MB / 0.8459 GB, free: 53.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.473e-05/1.642, allocations: 32 kB / 0.8459 GB, free: 53.22 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/1.642, allocations: 8.875 kB / 0.8459 GB, free: 53.21 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.961e-05/1.642, allocations: 19.94 kB / 0.8459 GB, free: 53.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02668/1.669, allocations: 16.42 MB / 0.862 GB, free: 36.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.669, allocations: 8 kB / 0.862 GB, free: 36.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002281/1.671, allocations: 0.4915 MB / 0.8625 GB, free: 36.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004569/1.676, allocations: 2.003 MB / 0.8644 GB, free: 34.19 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004053/1.676, allocations: 63.64 kB / 0.8645 GB, free: 34.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01619/1.693, allocations: 14.24 MB / 0.8784 GB, free: 19.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/1.693, allocations: 15.94 kB / 0.8784 GB, free: 19.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01957/1.712, allocations: 12.51 MB / 0.8906 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/1.715, allocations: 0.5532 MB / 0.8911 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002179/1.717, allocations: 59.98 kB / 0.8912 GB, free: 6.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0038/1.721, allocations: 223.7 kB / 0.8914 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007518/1.722, allocations: 201.6 kB / 0.8916 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/1.722, allocations: 84 kB / 0.8917 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006153/1.728, allocations: 3.584 MB / 0.8952 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.728, allocations: 0 / 0.8952 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009167/1.737, allocations: 1.513 MB / 0.8967 GB, free: 0.5703 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009958/1.738, allocations: 212 kB / 0.8969 GB, free: 368 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01534/1.754, allocations: 8.408 MB / 0.9051 GB, free: 7.945 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.754, allocations: 0 / 0.9051 GB, free: 7.945 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008342/1.762, allocations: 4.065 MB / 0.909 GB, free: 3.859 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004258/1.766, allocations: 0.6161 MB / 0.9096 GB, free: 3.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3008/2.067, allocations: 16.72 MB / 0.926 GB, free: 180.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009651/2.077, allocations: 4.45 MB / 0.9303 GB, free: 179.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007695/2.084, allocations: 2.482 MB / 0.9327 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00169/2.086, allocations: 354.2 kB / 0.9331 GB, free: 179.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.392e-06/2.086, allocations: 2.781 kB / 0.9331 GB, free: 179.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1049/2.191, allocations: 62.58 MB / 0.9942 GB, free: 130.2 MB / 0.545 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches