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.001589/0.001589, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.3 MB, free: 10.88 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.11 MB / 343.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 76.53 kB / 416.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1586, allocations: 62.45 MB / 479.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3789/0.5376, allocations: 70.16 MB / 0.5366 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04842/0.5861, allocations: 14.13 MB / 0.5504 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02391/0.61, allocations: 319.7 kB / 0.5507 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008575/0.6187, allocations: 4.133 MB / 0.5547 GB, free: 8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008069/0.6269, allocations: 2.169 MB / 0.5568 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003087/0.63, allocations: 0.9915 MB / 0.5578 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01505/0.645, allocations: 9.916 MB / 0.5675 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008885/0.654, allocations: 4.987 MB / 0.5724 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005208/0.6593, allocations: 1.962 MB / 0.5743 GB, free: 6.121 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006187/0.6655, allocations: 3.248 MB / 0.5774 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.6668, allocations: 340 kB / 0.5778 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003171/0.67, allocations: 1.268 MB / 0.579 GB, free: 1.262 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002819/0.6728, allocations: 2.622 MB / 0.5816 GB, free: 14.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004419/0.6772, allocations: 2.978 MB / 0.5845 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.6888, allocations: 9.377 MB / 0.5936 GB, free: 2.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.6888, allocations: 7.875 kB / 0.5936 GB, free: 2.223 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.6888, allocations: 0 / 0.5936 GB, free: 2.223 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003725/0.6892, allocations: 4 kB / 0.5936 GB, free: 2.219 MB / 430.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.02238/0.7116, allocations: 6.855 MB / 0.6003 GB, free: 11.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/0.7117, allocations: 8.875 kB / 0.6003 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02506/0.7367, allocations: 3.312 MB / 0.6036 GB, free: 7.953 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.7481, allocations: 4.31 MB / 0.6078 GB, free: 3.586 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003768/0.7485, allocations: 328.9 kB / 0.6081 GB, free: 3.262 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/0.7506, allocations: 447.6 kB / 0.6085 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02729/0.7779, allocations: 13.08 MB / 0.6213 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003066/0.7783, allocations: 71.36 kB / 0.6214 GB, free: 4.793 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008293/0.7791, allocations: 211.8 kB / 0.6216 GB, free: 4.586 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004946/0.7841, allocations: 2.523 MB / 0.624 GB, free: 2.062 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02715/0.8112, allocations: 11.39 MB / 0.6352 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08221/0.8935, allocations: 53.01 MB / 0.6869 GB, free: 140 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/0.9088, allocations: 5.645 MB / 0.6924 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005294/0.9142, allocations: 3.508 MB / 0.6959 GB, free: 6.828 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001006/0.9152, allocations: 0.6954 MB / 0.6965 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.998e-05/0.9153, allocations: 56.56 kB / 0.6966 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.722e-06/0.9153, allocations: 0 / 0.6966 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.463/1.378, allocations: 36.47 MB / 0.7322 GB, free: 190.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000241/1.379, allocations: 274.4 kB / 0.7325 GB, free: 189.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.391, allocations: 5.17 MB / 0.7375 GB, free: 187.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009824/1.392, allocations: 69.52 kB / 0.7376 GB, free: 187.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.395, allocations: 3.877 MB / 0.7414 GB, free: 184.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001824/1.396, allocations: 1.171 MB / 0.7425 GB, free: 184 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002769/1.399, allocations: 1.592 MB / 0.7441 GB, free: 183.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.146e-05/1.399, allocations: 312.2 kB / 0.7444 GB, free: 183 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005034/1.404, allocations: 3.626 MB / 0.7479 GB, free: 181.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006411/1.411, allocations: 7.81 MB / 0.7555 GB, free: 174.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01268/1.424, allocations: 12.25 MB / 0.7675 GB, free: 165.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/1.424, allocations: 46.56 kB / 0.7676 GB, free: 165.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02544/1.449, allocations: 13.73 MB / 0.781 GB, free: 154.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002956/1.45, allocations: 68 kB / 0.781 GB, free: 154.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003086/1.45, allocations: 144 kB / 0.7812 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006852/1.457, allocations: 2.746 MB / 0.7838 GB, free: 151.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00624/1.463, allocations: 1.782 MB / 0.7856 GB, free: 149.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01881/1.482, allocations: 16.6 MB / 0.8018 GB, free: 132.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008961/1.491, allocations: 479.2 kB / 0.8023 GB, free: 132.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002204/1.493, allocations: 451.9 kB / 0.8027 GB, free: 131.7 MB / 0.545 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.007794/1.501, allocations: 2.734 MB / 0.8054 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002088/1.503, allocations: 493.8 kB / 0.8058 GB, free: 128.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/1.518, allocations: 8.04 MB / 0.8137 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.986e-05/1.518, allocations: 36 kB / 0.8137 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.693e-05/1.518, allocations: 11.94 kB / 0.8137 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.167e-05/1.518, allocations: 15.94 kB / 0.8137 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03094/1.549, allocations: 17.08 MB / 0.8304 GB, free: 103.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.868e-05/1.549, allocations: 4 kB / 0.8304 GB, free: 103.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/1.552, allocations: 0.4956 MB / 0.8309 GB, free: 102.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005932/1.558, allocations: 2.479 MB / 0.8333 GB, free: 100.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007411/1.558, allocations: 63.98 kB / 0.8334 GB, free: 100.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01637/1.575, allocations: 14.8 MB / 0.8478 GB, free: 85.02 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/1.575, allocations: 11.94 kB / 0.8479 GB, free: 85 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02292/1.598, allocations: 12.58 MB / 0.8601 GB, free: 72.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001996/1.6, allocations: 0.5261 MB / 0.8607 GB, free: 71.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002204/1.602, allocations: 67.73 kB / 0.8607 GB, free: 71.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004207/1.606, allocations: 223.7 kB / 0.8609 GB, free: 71.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/1.607, allocations: 201.6 kB / 0.8611 GB, free: 71.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005155/1.608, allocations: 83.94 kB / 0.8612 GB, free: 71.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006876/1.615, allocations: 3.268 MB / 0.8644 GB, free: 67.87 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.615, allocations: 4 kB / 0.8644 GB, free: 67.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01079/1.626, allocations: 1.526 MB / 0.8659 GB, free: 66.34 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 (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.001812/1.628, allocations: 207.6 kB / 0.8661 GB, free: 66.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01562/1.643, allocations: 8.868 MB / 0.8748 GB, free: 57.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/1.643, allocations: 4 kB / 0.8748 GB, free: 57.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005735/1.649, allocations: 3.562 MB / 0.8782 GB, free: 53.67 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007925/1.657, allocations: 0.6376 MB / 0.8789 GB, free: 53.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03194/1.689, allocations: 17.4 MB / 0.8958 GB, free: 35.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009009/1.698, allocations: 4.279 MB / 0.9 GB, free: 31.25 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007799/1.706, allocations: 2.46 MB / 0.9024 GB, free: 28.79 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/1.708, allocations: 347.3 kB / 0.9028 GB, free: 28.45 MB / 0.545 GB Notification: Performance of SimCode: time 1.813e-06/1.708, allocations: 0 / 0.9028 GB, free: 28.45 MB / 0.545 GB Notification: Performance of Templates: time 0.4039/2.112, allocations: 66.3 MB / 0.9675 GB, free: 153.3 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