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.00113/0.00113, allocations: 99.58 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.565/1.565, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2421/0.2421, allocations: 46.19 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 8.219 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1584, allocations: 63.57 MB / 482.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4001/0.5585, allocations: 63.62 MB / 0.5332 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04056/0.5991, allocations: 13.46 MB / 0.5464 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02167/0.6208, allocations: 312.6 kB / 0.5467 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01584/0.6367, allocations: 3.344 MB / 0.5499 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03904/0.6758, allocations: 9.652 MB / 0.5594 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006062/0.6819, allocations: 0.905 MB / 0.5602 GB, free: 6.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08635/0.7682, allocations: 62.98 MB / 0.6218 GB, free: 8.242 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01223/0.7805, allocations: 6.25 MB / 0.6279 GB, free: 1.938 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00498/0.7856, allocations: 1.759 MB / 0.6296 GB, free: 176 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005784/0.7914, allocations: 2.812 MB / 0.6323 GB, free: 13.35 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001683/0.7931, allocations: 200 kB / 0.6325 GB, free: 13.15 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003745/0.7969, allocations: 0.9792 MB / 0.6335 GB, free: 12.17 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004033/0.8009, allocations: 2.384 MB / 0.6358 GB, free: 9.785 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00294/0.8039, allocations: 1.146 MB / 0.6369 GB, free: 8.629 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.8141, allocations: 7.54 MB / 0.6443 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.8141, allocations: 0 / 0.6443 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.8141, allocations: 0 / 0.6443 GB, free: 1.07 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000464/0.8146, allocations: 0 / 0.6443 GB, free: 1.07 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.01612/0.8308, allocations: 5.731 MB / 0.6499 GB, free: 11.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.8308, allocations: 8.031 kB / 0.6499 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02224/0.853, allocations: 3.397 MB / 0.6532 GB, free: 7.848 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.8656, allocations: 4.248 MB / 0.6573 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003592/0.866, allocations: 324.4 kB / 0.6577 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001914/0.8679, allocations: 451.5 kB / 0.6581 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02507/0.893, allocations: 13.07 MB / 0.6709 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002416/0.8933, allocations: 63.44 kB / 0.6709 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006556/0.8939, allocations: 207.8 kB / 0.6711 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00417/0.8981, allocations: 2.531 MB / 0.6736 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02577/0.9239, allocations: 11.35 MB / 0.6847 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3865/1.31, allocations: 53.01 MB / 0.7364 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01427/1.325, allocations: 5.66 MB / 0.742 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00568/1.33, allocations: 3.502 MB / 0.7454 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008158/1.331, allocations: 0.6817 MB / 0.746 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.691e-05/1.331, allocations: 62.16 kB / 0.7461 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.483e-06/1.331, allocations: 0 / 0.7461 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.09743/1.429, allocations: 36.49 MB / 0.7817 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/1.429, allocations: 269.3 kB / 0.782 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00767/1.437, allocations: 5.143 MB / 0.787 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000933/1.438, allocations: 73.7 kB / 0.7871 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002212/1.44, allocations: 3.869 MB / 0.7909 GB, free: 114.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001604/1.442, allocations: 1.174 MB / 0.792 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004245/1.442, allocations: 156 kB / 0.7922 GB, free: 113 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003438/1.442, allocations: 0.6464 MB / 0.7928 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004804/1.447, allocations: 3.592 MB / 0.7963 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00711/1.454, allocations: 7.783 MB / 0.8039 GB, free: 98.96 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007424/1.462, allocations: 5.195 MB / 0.809 GB, free: 93.75 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/1.462, allocations: 40 kB / 0.809 GB, free: 93.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.03/1.492, allocations: 13.67 MB / 0.8224 GB, free: 79.99 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000194/1.492, allocations: 68 kB / 0.8224 GB, free: 79.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002709/1.492, allocations: 144 kB / 0.8226 GB, free: 79.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006412/1.499, allocations: 2.781 MB / 0.8253 GB, free: 77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006481/1.505, allocations: 1.782 MB / 0.827 GB, free: 75.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01908/1.525, allocations: 16.62 MB / 0.8433 GB, free: 58.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008054/1.533, allocations: 479.2 kB / 0.8437 GB, free: 57.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002126/1.535, allocations: 448.6 kB / 0.8441 GB, free: 57.42 MB / 0.5294 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 (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.007372/1.542, allocations: 2.75 MB / 0.8468 GB, free: 54.66 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001774/1.544, allocations: 481.8 kB / 0.8473 GB, free: 54.18 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01554/1.56, allocations: 8.028 MB / 0.8551 GB, free: 46.09 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.171e-05/1.56, allocations: 32 kB / 0.8552 GB, free: 46.05 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-05/1.56, allocations: 11.38 kB / 0.8552 GB, free: 46.05 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.754e-05/1.56, allocations: 26.42 kB / 0.8552 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03858/1.598, allocations: 17.06 MB / 0.8719 GB, free: 28.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.624e-05/1.598, allocations: 4 kB / 0.8719 GB, free: 28.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/1.601, allocations: 0.4915 MB / 0.8723 GB, free: 28.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005876/1.607, allocations: 2.479 MB / 0.8748 GB, free: 25.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007792/1.608, allocations: 63.98 kB / 0.8748 GB, free: 25.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01653/1.624, allocations: 14.78 MB / 0.8893 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/1.625, allocations: 8.625 kB / 0.8893 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0202/1.645, allocations: 12.54 MB / 0.9015 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/1.647, allocations: 0.5378 MB / 0.902 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001753/1.649, allocations: 59.95 kB / 0.9021 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003658/1.652, allocations: 235.3 kB / 0.9023 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008416/1.653, allocations: 209.6 kB / 0.9025 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004514/1.654, allocations: 87.98 kB / 0.9026 GB, free: 12.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007652/1.661, allocations: 3.229 MB / 0.9058 GB, free: 9.688 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.515e-06/1.661, allocations: 4.109 kB / 0.9058 GB, free: 9.684 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01141/1.673, allocations: 1.53 MB / 0.9072 GB, free: 8.156 MB / 0.545 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 {(3,100.0%) 21,(3,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/1.674, allocations: 208.7 kB / 0.9074 GB, free: 7.949 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3072/1.982, allocations: 8.792 MB / 0.916 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/1.982, allocations: 1.219 kB / 0.916 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007202/1.989, allocations: 3.547 MB / 0.9195 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00446/1.993, allocations: 0.639 MB / 0.9201 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03257/2.026, allocations: 16.95 MB / 0.9367 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005595/2.032, allocations: 4.289 MB / 0.9409 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005755/2.037, allocations: 2.454 MB / 0.9433 GB, free: 174.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/2.039, allocations: 345.9 kB / 0.9436 GB, free: 174.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/2.039, allocations: 0 / 0.9436 GB, free: 174.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1034/2.142, allocations: 63.46 MB / 1.006 GB, free: 121 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","/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