Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 105.1 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009979/0.0009979, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241.9 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2126/0.2126, allocations: 44.18 MB / 336.2 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.14 kB / 407.9 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1186, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3144/0.433, allocations: 89.18 MB / 0.5448 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04815/0.4812, allocations: 17 MB / 0.5614 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02259/0.5038, allocations: 389 kB / 0.5618 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008946/0.5128, allocations: 4.854 MB / 0.5665 GB, free: 444 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007428/0.5204, allocations: 2.378 MB / 0.5689 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002709/0.5231, allocations: 1.01 MB / 0.5698 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01199/0.5351, allocations: 7.244 MB / 0.5769 GB, free: 5.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008385/0.5435, allocations: 6.107 MB / 0.5829 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004213/0.5478, allocations: 2.476 MB / 0.5853 GB, free: 13.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005201/0.553, allocations: 3.614 MB / 0.5888 GB, free: 9.508 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001314/0.5544, allocations: 0.5078 MB / 0.5893 GB, free: 9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003348/0.5577, allocations: 1.424 MB / 0.5907 GB, free: 7.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003409/0.5612, allocations: 3.098 MB / 0.5937 GB, free: 4.469 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005438/0.5666, allocations: 3.461 MB / 0.5971 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01309/0.5797, allocations: 10.35 MB / 0.6072 GB, free: 6.609 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.5798, allocations: 0 / 0.6072 GB, free: 6.609 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5798, allocations: 0 / 0.6072 GB, free: 6.609 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000417/0.5802, allocations: 0 / 0.6072 GB, free: 6.609 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01972/0.6, allocations: 7.507 MB / 0.6145 GB, free: 15.01 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.6, allocations: 8.031 kB / 0.6146 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01271/0.6127, allocations: 2.769 MB / 0.6173 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009281/0.622, allocations: 4.281 MB / 0.6214 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003386/0.6224, allocations: 365.9 kB / 0.6218 GB, free: 7.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001556/0.624, allocations: 495.5 kB / 0.6223 GB, free: 7.016 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02655/0.6505, allocations: 14.63 MB / 0.6366 GB, free: 7.371 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001864/0.6508, allocations: 71.36 kB / 0.6366 GB, free: 7.301 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006832/0.6515, allocations: 223.8 kB / 0.6368 GB, free: 7.082 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006083/0.6575, allocations: 2.824 MB / 0.6396 GB, free: 4.254 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03841/0.696, allocations: 12.36 MB / 0.6517 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3923/1.088, allocations: 58.4 MB / 0.7087 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01831/1.107, allocations: 6.281 MB / 0.7148 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005483/1.112, allocations: 3.706 MB / 0.7184 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01536/1.128, allocations: 8.561 MB / 0.7268 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/1.128, allocations: 63.38 kB / 0.7269 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.48e-06/1.128, allocations: 0 / 0.7269 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07207/1.2, allocations: 30.44 MB / 0.7566 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.749e-05/1.2, allocations: 243.3 kB / 0.7568 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00845/1.208, allocations: 6.751 MB / 0.7634 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007747/1.209, allocations: 65.7 kB / 0.7635 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002101/1.211, allocations: 4.499 MB / 0.7679 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001143/1.213, allocations: 1.067 MB / 0.7689 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002076/1.215, allocations: 1.798 MB / 0.7707 GB, free: 141 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.275e-05/1.215, allocations: 301.1 kB / 0.771 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/1.219, allocations: 3.592 MB / 0.7745 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00631/1.225, allocations: 8.68 MB / 0.7829 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/1.237, allocations: 13.19 MB / 0.7958 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/1.237, allocations: 52 kB / 0.7959 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02555/1.263, allocations: 14.06 MB / 0.8096 GB, free: 96.52 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/1.263, allocations: 80 kB / 0.8097 GB, free: 96.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/1.263, allocations: 184.1 kB / 0.8099 GB, free: 96.26 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005371/1.269, allocations: 2.285 MB / 0.8121 GB, free: 93.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006538/1.275, allocations: 2.016 MB / 0.8141 GB, free: 91.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01498/1.29, allocations: 14.37 MB / 0.8281 GB, free: 77.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007318/1.298, allocations: 0.4953 MB / 0.8286 GB, free: 76.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.299, allocations: 0.5228 MB / 0.8291 GB, free: 76.29 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.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 (1064): * Single equations (assignments): 1057 * 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.004533/1.304, allocations: 3.047 MB / 0.8321 GB, free: 73.23 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/1.305, allocations: 0.5553 MB / 0.8326 GB, free: 72.67 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.316, allocations: 7.087 MB / 0.8395 GB, free: 65.56 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.96e-05/1.316, allocations: 32 kB / 0.8396 GB, free: 65.53 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/1.316, allocations: 12 kB / 0.8396 GB, free: 65.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.046e-05/1.316, allocations: 15.89 kB / 0.8396 GB, free: 65.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02628/1.342, allocations: 15.01 MB / 0.8542 GB, free: 50.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.11e-05/1.342, allocations: 4 kB / 0.8542 GB, free: 50.44 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/1.345, allocations: 459.3 kB / 0.8547 GB, free: 49.99 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005009/1.35, allocations: 2.037 MB / 0.8567 GB, free: 47.95 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000643/1.35, allocations: 48 kB / 0.8567 GB, free: 47.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/1.365, allocations: 13.62 MB / 0.87 GB, free: 34.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/1.365, allocations: 11.31 kB / 0.87 GB, free: 34.01 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01535/1.381, allocations: 11.24 MB / 0.881 GB, free: 22.63 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.383, allocations: 0.6342 MB / 0.8816 GB, free: 21.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009607/1.384, allocations: 48 kB / 0.8817 GB, free: 21.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/1.386, allocations: 195.7 kB / 0.8819 GB, free: 21.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/1.387, allocations: 173.6 kB / 0.882 GB, free: 21.56 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002057/1.387, allocations: 79.98 kB / 0.8821 GB, free: 21.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005689/1.392, allocations: 4.317 MB / 0.8863 GB, free: 17.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.393, allocations: 0 / 0.8863 GB, free: 17.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008351/1.401, allocations: 1.611 MB / 0.8879 GB, free: 15.57 MB / 0.5294 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.0007489/1.402, allocations: 199.1 kB / 0.8881 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01565/1.417, allocations: 10.28 MB / 0.8981 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.417, allocations: 0 / 0.8981 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2278/1.645, allocations: 3.404 MB / 0.9014 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/1.651, allocations: 0.7469 MB / 0.9022 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/1.684, allocations: 17.97 MB / 0.9197 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006461/1.69, allocations: 4.629 MB / 0.9242 GB, free: 166 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006596/1.697, allocations: 2.786 MB / 0.927 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/1.698, allocations: 385.4 kB / 0.9273 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/1.698, allocations: 0 / 0.9273 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1142/1.812, allocations: 67.88 MB / 0.9936 GB, free: 107.1 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches