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.001103/0.001103, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001621/0.001621, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2536/0.2536, allocations: 46.18 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003074, allocations: 11.98 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1543, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3789/0.5333, allocations: 68.44 MB / 0.5386 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04736/0.5806, allocations: 14.06 MB / 0.5523 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02227/0.603, allocations: 312.6 kB / 0.5526 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002806/0.6058, allocations: 0.557 MB / 0.5532 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008854/0.6147, allocations: 2.18 MB / 0.5553 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003967/0.6187, allocations: 0.988 MB / 0.5563 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01444/0.6331, allocations: 9.922 MB / 0.566 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01214/0.6453, allocations: 7.023 MB / 0.5728 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005792/0.6512, allocations: 1.626 MB / 0.5744 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005725/0.6569, allocations: 2.838 MB / 0.5772 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/0.6586, allocations: 208 kB / 0.5774 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003865/0.6625, allocations: 1.131 MB / 0.5785 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004133/0.6666, allocations: 2.423 MB / 0.5808 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006299/0.6729, allocations: 2.761 MB / 0.5835 GB, free: 15.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.6877, allocations: 9.097 MB / 0.5924 GB, free: 6.652 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.6877, allocations: 4 kB / 0.5924 GB, free: 6.648 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6878, allocations: 0 / 0.5924 GB, free: 6.648 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004232/0.6882, allocations: 0 / 0.5924 GB, free: 6.648 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.01655/0.7047, allocations: 5.645 MB / 0.5979 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.7048, allocations: 12.88 kB / 0.598 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02902/0.7338, allocations: 3.398 MB / 0.6013 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.7487, allocations: 4.321 MB / 0.6055 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004577/0.7492, allocations: 324.8 kB / 0.6058 GB, free: 8.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002621/0.7519, allocations: 455.5 kB / 0.6062 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03299/0.7849, allocations: 13.1 MB / 0.619 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005412/0.7855, allocations: 75.27 kB / 0.6191 GB, free: 10.31 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002134/0.7876, allocations: 207.8 kB / 0.6193 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005461/0.7931, allocations: 2.519 MB / 0.6218 GB, free: 7.586 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/0.8203, allocations: 11.41 MB / 0.6329 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08581/0.9062, allocations: 53.04 MB / 0.6847 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01485/0.9211, allocations: 5.668 MB / 0.6902 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005119/0.9263, allocations: 3.503 MB / 0.6937 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008467/0.9271, allocations: 0.6876 MB / 0.6943 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.805e-05/0.9272, allocations: 56.56 kB / 0.6944 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.101e-06/0.9273, allocations: 0 / 0.6944 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.4362/1.363, allocations: 36.52 MB / 0.73 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.364, allocations: 275.7 kB / 0.7303 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/1.37, allocations: 5.167 MB / 0.7354 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007445/1.371, allocations: 73.33 kB / 0.7354 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002008/1.373, allocations: 3.867 MB / 0.7392 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001269/1.374, allocations: 1.18 MB / 0.7404 GB, free: 167 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007756/1.375, allocations: 0.6675 MB / 0.741 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.853e-05/1.375, allocations: 312.5 kB / 0.7413 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004379/1.38, allocations: 3.625 MB / 0.7448 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005685/1.385, allocations: 7.808 MB / 0.7525 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/1.397, allocations: 12.24 MB / 0.7644 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.397, allocations: 40 kB / 0.7645 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02577/1.423, allocations: 13.74 MB / 0.7779 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.786e-05/1.423, allocations: 74.8 kB / 0.7779 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/1.423, allocations: 144 kB / 0.7781 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00627/1.43, allocations: 2.753 MB / 0.7808 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005859/1.436, allocations: 1.782 MB / 0.7825 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/1.453, allocations: 16.61 MB / 0.7987 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008203/1.461, allocations: 479.1 kB / 0.7992 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/1.464, allocations: 451.9 kB / 0.7996 GB, free: 105.5 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.009405/1.474, allocations: 2.748 MB / 0.8023 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002206/1.476, allocations: 481.8 kB / 0.8028 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/1.493, allocations: 8.047 MB / 0.8106 GB, free: 94.19 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.334e-05/1.493, allocations: 32 kB / 0.8106 GB, free: 94.16 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.25e-05/1.493, allocations: 12 kB / 0.8107 GB, free: 94.15 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.48e-05/1.493, allocations: 18.94 kB / 0.8107 GB, free: 94.13 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03899/1.532, allocations: 17.08 MB / 0.8274 GB, free: 76.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.861e-05/1.532, allocations: 4.562 kB / 0.8274 GB, free: 76.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/1.535, allocations: 0.4915 MB / 0.8278 GB, free: 76.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005997/1.541, allocations: 2.488 MB / 0.8303 GB, free: 73.99 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006591/1.541, allocations: 60 kB / 0.8303 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.558, allocations: 14.8 MB / 0.8448 GB, free: 58.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/1.558, allocations: 11.94 kB / 0.8448 GB, free: 58.86 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0213/1.579, allocations: 12.57 MB / 0.8571 GB, free: 46.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001983/1.581, allocations: 0.5339 MB / 0.8576 GB, free: 45.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001789/1.583, allocations: 67.94 kB / 0.8577 GB, free: 45.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/1.587, allocations: 235.7 kB / 0.8579 GB, free: 45.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009572/1.588, allocations: 209.5 kB / 0.8581 GB, free: 45.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004767/1.588, allocations: 87.77 kB / 0.8582 GB, free: 44.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006427/1.595, allocations: 3.268 MB / 0.8614 GB, free: 41.69 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/1.595, allocations: 0 / 0.8614 GB, free: 41.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0114/1.606, allocations: 1.526 MB / 0.8628 GB, free: 40.17 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.001628/1.608, allocations: 204 kB / 0.863 GB, free: 39.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01496/1.623, allocations: 8.868 MB / 0.8717 GB, free: 31.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-05/1.623, allocations: 0 / 0.8717 GB, free: 31.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006232/1.629, allocations: 3.56 MB / 0.8752 GB, free: 27.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/1.64, allocations: 0.6369 MB / 0.8758 GB, free: 26.87 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02753/1.667, allocations: 17.62 MB / 0.893 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004953/1.672, allocations: 4.287 MB / 0.8972 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0064/1.679, allocations: 2.448 MB / 0.8996 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.68, allocations: 347.4 kB / 0.8999 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of SimCode: time 1.273e-06/1.68, allocations: 0 / 0.8999 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of Templates: time 0.4067/2.087, allocations: 64.84 MB / 0.9632 GB, free: 143.5 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