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.0008751/0.0008753, allocations: 95 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009034/0.0009035, allocations: 205.8 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.8 MB / 246.9 MB, free: 11.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 46.2 MB / 345.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 8 kB / 419.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1713, allocations: 63.58 MB / 483.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3627/0.5341, allocations: 68.44 MB / 0.5387 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04063/0.5747, allocations: 14.05 MB / 0.5524 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02178/0.5966, allocations: 313.1 kB / 0.5527 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.5994, allocations: 0.5587 MB / 0.5533 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008476/0.6079, allocations: 2.179 MB / 0.5554 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003177/0.6111, allocations: 0.9881 MB / 0.5564 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01592/0.627, allocations: 9.927 MB / 0.5661 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01286/0.6399, allocations: 7.02 MB / 0.5729 GB, free: 10.69 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004313/0.6443, allocations: 1.626 MB / 0.5745 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005805/0.6501, allocations: 2.846 MB / 0.5773 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.6513, allocations: 204 kB / 0.5775 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003076/0.6543, allocations: 1.131 MB / 0.5786 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003075/0.6574, allocations: 2.423 MB / 0.5809 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004155/0.6616, allocations: 2.754 MB / 0.5836 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01399/0.6756, allocations: 9.105 MB / 0.5925 GB, free: 6.527 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.6757, allocations: 3.938 kB / 0.5925 GB, free: 6.523 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6757, allocations: 0 / 0.5925 GB, free: 6.523 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003477/0.676, allocations: 0 / 0.5925 GB, free: 6.523 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.01544/0.6915, allocations: 5.643 MB / 0.598 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.6916, allocations: 12.88 kB / 0.598 GB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02987/0.7214, allocations: 3.394 MB / 0.6014 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.7338, allocations: 4.321 MB / 0.6056 GB, free: 9.008 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/0.7342, allocations: 324.8 kB / 0.6059 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00201/0.7362, allocations: 451.6 kB / 0.6063 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02813/0.7643, allocations: 13.11 MB / 0.6191 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002544/0.7647, allocations: 67.34 kB / 0.6192 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000646/0.7653, allocations: 199.8 kB / 0.6194 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0056/0.7709, allocations: 2.531 MB / 0.6219 GB, free: 7.465 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02666/0.7976, allocations: 11.4 MB / 0.633 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08512/0.8828, allocations: 53.04 MB / 0.6848 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01506/0.8979, allocations: 5.661 MB / 0.6903 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005583/0.9035, allocations: 3.504 MB / 0.6937 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009314/0.9045, allocations: 0.6877 MB / 0.6944 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.171e-05/0.9046, allocations: 60.56 kB / 0.6945 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.75e-06/0.9046, allocations: 0 / 0.6945 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.4231/1.328, allocations: 36.53 MB / 0.7301 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.328, allocations: 263 kB / 0.7304 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006922/1.335, allocations: 5.173 MB / 0.7354 GB, free: 171 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008329/1.336, allocations: 73.55 kB / 0.7355 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002198/1.338, allocations: 3.874 MB / 0.7393 GB, free: 168 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002048/1.34, allocations: 1.174 MB / 0.7404 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009428/1.341, allocations: 0.6757 MB / 0.7411 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.352e-05/1.341, allocations: 301.1 kB / 0.7414 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004978/1.346, allocations: 3.629 MB / 0.7449 GB, free: 165 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006029/1.352, allocations: 7.802 MB / 0.7525 GB, free: 156 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/1.365, allocations: 12.24 MB / 0.7645 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001168/1.366, allocations: 47.98 kB / 0.7645 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02555/1.391, allocations: 13.74 MB / 0.778 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.242e-05/1.391, allocations: 64.97 kB / 0.778 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000152/1.391, allocations: 144 kB / 0.7782 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00645/1.398, allocations: 2.753 MB / 0.7809 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006644/1.405, allocations: 1.786 MB / 0.7826 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01787/1.422, allocations: 16.61 MB / 0.7988 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00784/1.43, allocations: 487.1 kB / 0.7993 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001809/1.432, allocations: 451.9 kB / 0.7997 GB, free: 105.3 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 (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.007193/1.439, allocations: 2.744 MB / 0.8024 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00205/1.441, allocations: 481.8 kB / 0.8028 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/1.455, allocations: 8.047 MB / 0.8107 GB, free: 93.99 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.813e-05/1.455, allocations: 32 kB / 0.8107 GB, free: 93.96 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/1.455, allocations: 12 kB / 0.8107 GB, free: 93.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.079e-05/1.455, allocations: 11.95 kB / 0.8108 GB, free: 93.94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02863/1.484, allocations: 17.08 MB / 0.8274 GB, free: 76.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.373e-05/1.484, allocations: 9.938 kB / 0.8275 GB, free: 76.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002413/1.486, allocations: 0.4915 MB / 0.8279 GB, free: 76.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006114/1.492, allocations: 2.483 MB / 0.8304 GB, free: 73.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005558/1.493, allocations: 59.98 kB / 0.8304 GB, free: 73.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01591/1.509, allocations: 14.8 MB / 0.8449 GB, free: 58.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.509, allocations: 8 kB / 0.8449 GB, free: 58.66 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01836/1.527, allocations: 12.58 MB / 0.8572 GB, free: 45.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/1.529, allocations: 0.5339 MB / 0.8577 GB, free: 45.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008073/1.53, allocations: 67.92 kB / 0.8578 GB, free: 45.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.532, allocations: 235.7 kB / 0.858 GB, free: 45.03 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006005/1.533, allocations: 203.5 kB / 0.8582 GB, free: 44.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/1.533, allocations: 88.11 kB / 0.8583 GB, free: 44.75 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004224/1.537, allocations: 3.268 MB / 0.8614 GB, free: 41.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/1.537, allocations: 0 / 0.8614 GB, free: 41.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007049/1.544, allocations: 1.526 MB / 0.8629 GB, free: 39.97 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 (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.0006887/1.545, allocations: 210.9 kB / 0.8631 GB, free: 39.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01214/1.557, allocations: 8.852 MB / 0.8718 GB, free: 30.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.557, allocations: 7.938 kB / 0.8718 GB, free: 30.89 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004686/1.562, allocations: 3.56 MB / 0.8753 GB, free: 27.31 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008916/1.571, allocations: 0.6383 MB / 0.8759 GB, free: 26.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02739/1.598, allocations: 17.62 MB / 0.8931 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006351/1.605, allocations: 4.283 MB / 0.8973 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006103/1.611, allocations: 2.456 MB / 0.8997 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/1.612, allocations: 347.3 kB / 0.9 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of SimCode: time 1.764e-06/1.612, allocations: 4 kB / 0.9 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.4033/2.016, allocations: 64.83 MB / 0.9633 GB, free: 143.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","/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