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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 110 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 182.3 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1848/0.1848, allocations: 44.19 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.88 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.325, allocations: 60.83 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01445/0.3394, allocations: 14.78 MB / 0.534 GB, free: 8.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.3499, allocations: 5 MB / 0.5389 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002831/0.3528, allocations: 101.2 kB / 0.539 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007737/0.3605, allocations: 4.161 MB / 0.5431 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006597/0.3672, allocations: 2.362 MB / 0.5454 GB, free: 416 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002874/0.3701, allocations: 1.086 MB / 0.5464 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.3807, allocations: 7.05 MB / 0.5533 GB, free: 9.449 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005729/0.3864, allocations: 5.163 MB / 0.5584 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.3899, allocations: 2.266 MB / 0.5606 GB, free: 1.949 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004031/0.394, allocations: 3.076 MB / 0.5636 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009759/0.395, allocations: 500 kB / 0.564 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002579/0.3976, allocations: 1.377 MB / 0.5654 GB, free: 13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002369/0.4, allocations: 2.809 MB / 0.5681 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003311/0.4033, allocations: 3.177 MB / 0.5712 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.4137, allocations: 9.934 MB / 0.5809 GB, free: 13.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4137, allocations: 4 kB / 0.5809 GB, free: 13.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4137, allocations: 0 / 0.5809 GB, free: 13.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002565/0.414, allocations: 0 / 0.5809 GB, free: 13.02 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01395/0.4279, allocations: 6.91 MB / 0.5877 GB, free: 6.023 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.428, allocations: 12.03 kB / 0.5877 GB, free: 6.012 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02706/0.455, allocations: 3.335 MB / 0.591 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009595/0.4647, allocations: 4.528 MB / 0.5954 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.4649, allocations: 324.8 kB / 0.5957 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.4661, allocations: 459.5 kB / 0.5961 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.487, allocations: 13.27 MB / 0.6091 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001679/0.4872, allocations: 67.42 kB / 0.6092 GB, free: 15.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005969/0.4878, allocations: 207.8 kB / 0.6094 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004623/0.4925, allocations: 2.597 MB / 0.6119 GB, free: 12.27 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02077/0.5133, allocations: 11.54 MB / 0.6232 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06087/0.5742, allocations: 53.17 MB / 0.6751 GB, free: 10 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01306/0.5873, allocations: 5.665 MB / 0.6806 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003993/0.5913, allocations: 3.504 MB / 0.684 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006523/0.592, allocations: 0.6838 MB / 0.6847 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.592, allocations: 68.5 kB / 0.6848 GB, free: 15.81 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 4.969e-06/0.592, allocations: 0 / 0.6848 GB, free: 15.81 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.3495/0.9415, allocations: 36.54 MB / 0.7205 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.845e-05/0.9417, allocations: 272.4 kB / 0.7207 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007568/0.9492, allocations: 5.22 MB / 0.7258 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007759/0.95, allocations: 71.67 kB / 0.7259 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002239/0.9523, allocations: 3.915 MB / 0.7297 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001301/0.9536, allocations: 1.173 MB / 0.7309 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/0.9558, allocations: 1.598 MB / 0.7324 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.54e-05/0.9558, allocations: 306.5 kB / 0.7327 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004942/0.9608, allocations: 3.629 MB / 0.7363 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005743/0.9665, allocations: 7.838 MB / 0.7439 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/0.9777, allocations: 12.28 MB / 0.7559 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.9778, allocations: 41.34 kB / 0.7559 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02107/0.9989, allocations: 13.75 MB / 0.7694 GB, free: 132 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/0.999, allocations: 68 kB / 0.7694 GB, free: 132 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/0.9991, allocations: 147 kB / 0.7696 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005984/1.005, allocations: 2.758 MB / 0.7723 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005428/1.011, allocations: 1.79 MB / 0.774 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.028, allocations: 17.81 MB / 0.7914 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006377/1.034, allocations: 479.1 kB / 0.7919 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.036, allocations: 455.9 kB / 0.7923 GB, free: 108.3 MB / 0.5606 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.004335/1.04, allocations: 2.772 MB / 0.795 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.041, allocations: 485.8 kB / 0.7955 GB, free: 105 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.053, allocations: 8.048 MB / 0.8033 GB, free: 96.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.186e-05/1.053, allocations: 32 kB / 0.8033 GB, free: 96.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/1.053, allocations: 15 kB / 0.8034 GB, free: 96.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.014e-05/1.053, allocations: 15.94 kB / 0.8034 GB, free: 96.83 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.078, allocations: 16.88 MB / 0.8199 GB, free: 79.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.531e-05/1.078, allocations: 10.56 kB / 0.8199 GB, free: 79.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/1.081, allocations: 0.4992 MB / 0.8204 GB, free: 79.37 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005593/1.086, allocations: 2.494 MB / 0.8228 GB, free: 76.87 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004723/1.087, allocations: 60 kB / 0.8229 GB, free: 76.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.102, allocations: 15.95 MB / 0.8384 GB, free: 60.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.331e-06/1.103, allocations: 15.94 kB / 0.8384 GB, free: 60.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01874/1.121, allocations: 12.6 MB / 0.8508 GB, free: 47.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.123, allocations: 0.5339 MB / 0.8513 GB, free: 47.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009776/1.124, allocations: 59.98 kB / 0.8513 GB, free: 47.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002543/1.126, allocations: 231.3 kB / 0.8516 GB, free: 46.94 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/1.127, allocations: 197.6 kB / 0.8517 GB, free: 46.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.127, allocations: 88 kB / 0.8518 GB, free: 46.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003942/1.131, allocations: 3.304 MB / 0.8551 GB, free: 43.37 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.6e-07/1.131, allocations: 0 / 0.8551 GB, free: 43.37 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006359/1.138, allocations: 1.548 MB / 0.8566 GB, free: 41.83 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.000759/1.138, allocations: 218.8 kB / 0.8568 GB, free: 41.61 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.15, allocations: 8.915 MB / 0.8655 GB, free: 32.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/1.15, allocations: 0 / 0.8655 GB, free: 32.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004502/1.155, allocations: 3.574 MB / 0.869 GB, free: 29.09 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/1.159, allocations: 0.6802 MB / 0.8696 GB, free: 28.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/1.181, allocations: 15.23 MB / 0.8845 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003999/1.185, allocations: 4.3 MB / 0.8887 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/1.187, allocations: 399.4 kB / 0.8891 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of SimCode: time 1.273e-06/1.187, allocations: 112 / 0.8891 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of Templates: time 0.3997/1.587, allocations: 136.9 MB / 1.023 GB, free: 131.6 MB / 0.6075 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/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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches