Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 105.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.225/0.225, allocations: 46.11 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 75.5 kB / 416.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1588, allocations: 62.45 MB / 479.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3182/0.477, allocations: 81.44 MB / 0.5476 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04608/0.5232, allocations: 15.64 MB / 0.5629 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01875/0.542, allocations: 365.8 kB / 0.5632 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009697/0.5517, allocations: 5 MB / 0.5681 GB, free: 12.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007919/0.5597, allocations: 2.328 MB / 0.5704 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003141/0.5629, allocations: 1.002 MB / 0.5713 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01528/0.5782, allocations: 10.01 MB / 0.5811 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0114/0.5896, allocations: 5.684 MB / 0.5867 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005361/0.5951, allocations: 2.125 MB / 0.5887 GB, free: 7.191 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006124/0.6012, allocations: 3.446 MB / 0.5921 GB, free: 3.734 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00224/0.6035, allocations: 372 kB / 0.5925 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003888/0.6074, allocations: 1.315 MB / 0.5937 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006911/0.6143, allocations: 2.883 MB / 0.5966 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008482/0.6229, allocations: 3.211 MB / 0.5997 GB, free: 11.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01568/0.6386, allocations: 9.921 MB / 0.6094 GB, free: 1.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.6387, allocations: 0 / 0.6094 GB, free: 1.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.6387, allocations: 0 / 0.6094 GB, free: 1.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005492/0.6392, allocations: 3.938 kB / 0.6094 GB, free: 1.977 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02381/0.6631, allocations: 7.393 MB / 0.6166 GB, free: 10.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.6631, allocations: 8.875 kB / 0.6166 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01309/0.6762, allocations: 2.71 MB / 0.6193 GB, free: 7.766 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.6866, allocations: 4.187 MB / 0.6234 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.6871, allocations: 357.8 kB / 0.6237 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002037/0.6891, allocations: 483.5 kB / 0.6242 GB, free: 2.672 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02932/0.7185, allocations: 14.25 MB / 0.6381 GB, free: 3.406 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002442/0.7188, allocations: 71.31 kB / 0.6381 GB, free: 3.336 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007841/0.7196, allocations: 227.8 kB / 0.6384 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004939/0.7245, allocations: 2.707 MB / 0.641 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02526/0.7498, allocations: 12.04 MB / 0.6527 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08352/0.8334, allocations: 57.55 MB / 0.709 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01627/0.8497, allocations: 6.279 MB / 0.7151 GB, free: 2.883 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2502/1.1, allocations: 3.704 MB / 0.7187 GB, free: 196.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01746/1.117, allocations: 8.526 MB / 0.727 GB, free: 193.9 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.123e-05/1.118, allocations: 66.77 kB / 0.7271 GB, free: 193.8 MB / 0.545 GB Notification: Performance of pre-optimization done (n=236): time 7.263e-06/1.118, allocations: 4.156 kB / 0.7271 GB, free: 193.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=278): time 0.07782/1.195, allocations: 30.31 MB / 0.7567 GB, free: 182.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/1.195, allocations: 239.6 kB / 0.7569 GB, free: 182.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008211/1.204, allocations: 6.682 MB / 0.7634 GB, free: 175.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006316/1.204, allocations: 65.7 kB / 0.7635 GB, free: 175.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00193/1.206, allocations: 4.416 MB / 0.7678 GB, free: 171 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.207, allocations: 1.063 MB / 0.7689 GB, free: 169.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001978/1.209, allocations: 1.792 MB / 0.7706 GB, free: 168.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.621e-05/1.209, allocations: 308.8 kB / 0.7709 GB, free: 167.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004987/1.214, allocations: 3.57 MB / 0.7744 GB, free: 164.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006841/1.221, allocations: 8.637 MB / 0.7828 GB, free: 153.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.233, allocations: 13.14 MB / 0.7956 GB, free: 137.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/1.233, allocations: 52 kB / 0.7957 GB, free: 137.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02165/1.255, allocations: 14.01 MB / 0.8094 GB, free: 123.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.187e-05/1.255, allocations: 80 kB / 0.8095 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/1.255, allocations: 176 kB / 0.8096 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005537/1.26, allocations: 2.284 MB / 0.8119 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006218/1.267, allocations: 1.996 MB / 0.8138 GB, free: 119 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/1.281, allocations: 13.41 MB / 0.8269 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00649/1.287, allocations: 0.4993 MB / 0.8274 GB, free: 104.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/1.289, allocations: 0.5152 MB / 0.8279 GB, free: 104.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * 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 {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004629/1.293, allocations: 2.989 MB / 0.8308 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/1.294, allocations: 0.5637 MB / 0.8314 GB, free: 100.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.306, allocations: 7.071 MB / 0.8383 GB, free: 93.69 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.071e-05/1.306, allocations: 32 kB / 0.8383 GB, free: 93.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/1.306, allocations: 8 kB / 0.8383 GB, free: 93.65 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.458e-05/1.306, allocations: 15.94 kB / 0.8383 GB, free: 93.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0238/1.33, allocations: 14.92 MB / 0.8529 GB, free: 78.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.33, allocations: 4 kB / 0.8529 GB, free: 78.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/1.332, allocations: 459.3 kB / 0.8533 GB, free: 78.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004698/1.336, allocations: 2.034 MB / 0.8553 GB, free: 76.17 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/1.337, allocations: 51.52 kB / 0.8554 GB, free: 76.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01336/1.35, allocations: 12.68 MB / 0.8677 GB, free: 63.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/1.35, allocations: 7.938 kB / 0.8678 GB, free: 63.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/1.365, allocations: 11.22 MB / 0.8787 GB, free: 51.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.366, allocations: 0.6342 MB / 0.8793 GB, free: 51.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/1.367, allocations: 47.98 kB / 0.8794 GB, free: 51.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002971/1.37, allocations: 195.7 kB / 0.8796 GB, free: 50.92 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000642/1.371, allocations: 177.6 kB / 0.8797 GB, free: 50.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002736/1.371, allocations: 72 kB / 0.8798 GB, free: 50.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007161/1.378, allocations: 4.28 MB / 0.884 GB, free: 46.41 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.22e-07/1.378, allocations: 0 / 0.884 GB, free: 46.41 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008348/1.387, allocations: 1.577 MB / 0.8855 GB, free: 44.83 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * 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 (220): * Single equations (assignments): 215 * 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 {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009346/1.388, allocations: 199.4 kB / 0.8857 GB, free: 44.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01317/1.401, allocations: 8.662 MB / 0.8942 GB, free: 35.97 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/1.401, allocations: 0 / 0.8942 GB, free: 35.97 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00586/1.407, allocations: 3.407 MB / 0.8975 GB, free: 32.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/1.413, allocations: 0.6953 MB / 0.8982 GB, free: 31.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2298/1.643, allocations: 17.69 MB / 0.9155 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007481/1.651, allocations: 4.541 MB / 0.9199 GB, free: 174 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008537/1.659, allocations: 2.766 MB / 0.9226 GB, free: 173.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002101/1.661, allocations: 387.4 kB / 0.923 GB, free: 173.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.703e-06/1.661, allocations: 0 / 0.923 GB, free: 173.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1098/1.771, allocations: 64.65 MB / 0.9861 GB, free: 133.9 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches