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.0009116/0.0009117, allocations: 92.34 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.001159/0.001159, allocations: 203.3 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.455/1.455, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2314/0.2314, allocations: 46.18 MB / 345.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003336, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1493, allocations: 63.56 MB / 483.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3507/0.5, allocations: 68.44 MB / 0.5386 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04299/0.543, allocations: 14.06 MB / 0.5523 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02106/0.5642, allocations: 313.2 kB / 0.5526 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002541/0.5667, allocations: 0.5575 MB / 0.5532 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007096/0.5739, allocations: 2.178 MB / 0.5553 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002768/0.5766, allocations: 0.987 MB / 0.5563 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.014/0.5906, allocations: 9.93 MB / 0.566 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01219/0.6029, allocations: 7.014 MB / 0.5728 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004416/0.6073, allocations: 1.63 MB / 0.5744 GB, free: 9.148 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005963/0.6133, allocations: 2.846 MB / 0.5772 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001419/0.6148, allocations: 200 kB / 0.5774 GB, free: 6.098 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003711/0.6185, allocations: 1.135 MB / 0.5785 GB, free: 4.961 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003109/0.6216, allocations: 2.423 MB / 0.5808 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003434/0.6251, allocations: 2.761 MB / 0.5835 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01033/0.6354, allocations: 9.097 MB / 0.5924 GB, free: 6.617 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.6355, allocations: 0 / 0.5924 GB, free: 6.617 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6355, allocations: 0 / 0.5924 GB, free: 6.617 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003014/0.6358, allocations: 0 / 0.5924 GB, free: 6.617 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.01349/0.6493, allocations: 5.647 MB / 0.5979 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.6494, allocations: 8.875 kB / 0.598 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/0.6781, allocations: 3.402 MB / 0.6013 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01179/0.6899, allocations: 4.314 MB / 0.6055 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003325/0.6903, allocations: 328.8 kB / 0.6058 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001527/0.6918, allocations: 447.6 kB / 0.6062 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.025/0.7168, allocations: 13.1 MB / 0.619 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002357/0.7171, allocations: 75.22 kB / 0.6191 GB, free: 10.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006552/0.7178, allocations: 203.8 kB / 0.6193 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004524/0.7223, allocations: 2.527 MB / 0.6218 GB, free: 7.555 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0232/0.7455, allocations: 11.41 MB / 0.6329 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07377/0.8193, allocations: 53.05 MB / 0.6847 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.8342, allocations: 5.656 MB / 0.6902 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005484/0.8398, allocations: 3.506 MB / 0.6936 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.8408, allocations: 0.6916 MB / 0.6943 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.791e-05/0.8409, allocations: 60.5 kB / 0.6944 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 8.687e-06/0.841, allocations: 0 / 0.6944 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.3784/1.219, allocations: 36.53 MB / 0.7301 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/1.219, allocations: 276 kB / 0.7303 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005648/1.225, allocations: 5.161 MB / 0.7354 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004737/1.226, allocations: 75.27 kB / 0.7354 GB, free: 171 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001999/1.228, allocations: 3.867 MB / 0.7392 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00111/1.229, allocations: 1.175 MB / 0.7404 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007724/1.23, allocations: 0.6752 MB / 0.741 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.337e-05/1.23, allocations: 303.8 kB / 0.7413 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00445/1.234, allocations: 3.626 MB / 0.7448 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006267/1.24, allocations: 7.812 MB / 0.7525 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/1.251, allocations: 12.24 MB / 0.7644 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.881e-05/1.252, allocations: 42.91 kB / 0.7645 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02087/1.272, allocations: 13.74 MB / 0.7779 GB, free: 128 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.009e-05/1.273, allocations: 64.19 kB / 0.7779 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/1.273, allocations: 148 kB / 0.7781 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006195/1.279, allocations: 2.753 MB / 0.7808 GB, free: 125 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005421/1.284, allocations: 1.774 MB / 0.7825 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/1.302, allocations: 16.61 MB / 0.7987 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006939/1.309, allocations: 483.1 kB / 0.7992 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009239/1.31, allocations: 455.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.004654/1.315, allocations: 2.736 MB / 0.8023 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009307/1.316, allocations: 477.8 kB / 0.8027 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/1.328, allocations: 8.047 MB / 0.8106 GB, free: 94.13 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-05/1.328, allocations: 32 kB / 0.8106 GB, free: 94.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/1.329, allocations: 12 kB / 0.8106 GB, free: 94.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/1.329, allocations: 15.94 kB / 0.8107 GB, free: 94.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02624/1.355, allocations: 17.08 MB / 0.8273 GB, free: 76.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.139e-05/1.355, allocations: 4 kB / 0.8274 GB, free: 76.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/1.357, allocations: 0.4962 MB / 0.8278 GB, free: 76.42 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00583/1.363, allocations: 2.486 MB / 0.8303 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/1.363, allocations: 70.25 kB / 0.8303 GB, free: 73.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01571/1.379, allocations: 14.8 MB / 0.8448 GB, free: 58.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.379, allocations: 11.94 kB / 0.8448 GB, free: 58.79 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01743/1.397, allocations: 12.57 MB / 0.8571 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/1.398, allocations: 0.5339 MB / 0.8576 GB, free: 45.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007606/1.399, allocations: 63.92 kB / 0.8577 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.401, allocations: 235.7 kB / 0.8579 GB, free: 45.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005823/1.402, allocations: 205.7 kB / 0.8581 GB, free: 44.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/1.402, allocations: 93.41 kB / 0.8582 GB, free: 44.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004368/1.407, allocations: 3.264 MB / 0.8614 GB, free: 41.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.407, allocations: 0 / 0.8614 GB, free: 41.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008819/1.415, allocations: 1.526 MB / 0.8628 GB, free: 40.1 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.0006331/1.416, allocations: 207.2 kB / 0.863 GB, free: 39.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01444/1.431, allocations: 8.864 MB / 0.8717 GB, free: 31.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/1.431, allocations: 0 / 0.8717 GB, free: 31.03 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004892/1.435, allocations: 3.559 MB / 0.8752 GB, free: 27.44 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008259/1.444, allocations: 0.6424 MB / 0.8758 GB, free: 26.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02231/1.466, allocations: 17.61 MB / 0.893 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003897/1.47, allocations: 4.283 MB / 0.8972 GB, free: 4.777 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005673/1.476, allocations: 2.448 MB / 0.8996 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/1.477, allocations: 347.4 kB / 0.8999 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/1.477, allocations: 0 / 0.8999 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of Templates: time 0.3885/1.865, 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