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.0008121/0.0008121, allocations: 96.25 kB / 17 MB, free: 6.352 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.0008196/0.0008197, allocations: 183.8 kB / 17.89 MB, free: 5.926 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.516/1.516, allocations: 223.3 MB / 241.9 MB, free: 14.29 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.2176/0.2176, allocations: 44.25 MB / 337.3 MB, free: 2.5 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003894, allocations: 15.94 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1352, allocations: 61.92 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3663/0.5016, allocations: 80.97 MB / 0.5396 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04937/0.551, allocations: 16.35 MB / 0.5556 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02567/0.5767, allocations: 387 kB / 0.5559 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01718/0.594, allocations: 4.275 MB / 0.5601 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04087/0.6349, allocations: 12.41 MB / 0.5722 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.6416, allocations: 0.8621 MB / 0.5731 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0886/0.7302, allocations: 63.01 MB / 0.6346 GB, free: 13.49 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01318/0.7434, allocations: 7.312 MB / 0.6418 GB, free: 6.09 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004616/0.7481, allocations: 1.907 MB / 0.6436 GB, free: 4.176 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006186/0.7543, allocations: 2.971 MB / 0.6465 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001673/0.756, allocations: 208 kB / 0.6467 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004164/0.7602, allocations: 1.003 MB / 0.6477 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004655/0.7649, allocations: 2.665 MB / 0.6503 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003031/0.7679, allocations: 1.248 MB / 0.6515 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.7784, allocations: 8.175 MB / 0.6595 GB, free: 3.863 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.7784, allocations: 0 / 0.6595 GB, free: 3.863 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.7784, allocations: 4 kB / 0.6595 GB, free: 3.859 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004363/0.7789, allocations: 4 kB / 0.6595 GB, free: 3.855 MB / 494.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.01457/0.7934, allocations: 6.251 MB / 0.6656 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.7935, allocations: 12.03 kB / 0.6656 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.8056, allocations: 2.826 MB / 0.6684 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009919/0.8155, allocations: 4.195 MB / 0.6725 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004364/0.816, allocations: 369.3 kB / 0.6728 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001832/0.8179, allocations: 491.6 kB / 0.6733 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03255/0.8504, allocations: 14.61 MB / 0.6876 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003543/0.8508, allocations: 67.38 kB / 0.6876 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001713/0.8526, allocations: 231.8 kB / 0.6879 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004984/0.8576, allocations: 2.828 MB / 0.6906 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/0.8847, allocations: 12.31 MB / 0.7026 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3391/1.224, allocations: 58.43 MB / 0.7597 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/1.237, allocations: 6.274 MB / 0.7658 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00374/1.24, allocations: 3.698 MB / 0.7694 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01185/1.252, allocations: 8.549 MB / 0.7778 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/1.252, allocations: 64.11 kB / 0.7778 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.871e-06/1.252, allocations: 0 / 0.7778 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06696/1.319, allocations: 30.39 MB / 0.8075 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/1.319, allocations: 238.2 kB / 0.8077 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008345/1.328, allocations: 6.715 MB / 0.8143 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007759/1.329, allocations: 69.7 kB / 0.8144 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002433/1.331, allocations: 4.493 MB / 0.8188 GB, free: 96.01 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001369/1.332, allocations: 1.07 MB / 0.8198 GB, free: 94.95 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/1.333, allocations: 176.6 kB / 0.82 GB, free: 94.77 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003312/1.333, allocations: 0.6819 MB / 0.8206 GB, free: 94.08 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/1.338, allocations: 3.55 MB / 0.8241 GB, free: 90.52 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006419/1.344, allocations: 8.65 MB / 0.8326 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006873/1.351, allocations: 5.39 MB / 0.8378 GB, free: 73.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.751e-05/1.351, allocations: 52 kB / 0.8379 GB, free: 73.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02564/1.377, allocations: 13.99 MB / 0.8515 GB, free: 59.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003929/1.377, allocations: 84 kB / 0.8516 GB, free: 59.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005257/1.378, allocations: 176 kB / 0.8518 GB, free: 59.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005624/1.383, allocations: 2.316 MB / 0.854 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/1.39, allocations: 2.012 MB / 0.856 GB, free: 55.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01484/1.405, allocations: 13.4 MB / 0.8691 GB, free: 41.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006698/1.412, allocations: 0.4992 MB / 0.8696 GB, free: 41.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/1.413, allocations: 0.5214 MB / 0.8701 GB, free: 40.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006276/1.42, allocations: 3.051 MB / 0.8731 GB, free: 37.55 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/1.421, allocations: 0.5557 MB / 0.8736 GB, free: 36.99 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/1.434, allocations: 7.072 MB / 0.8805 GB, free: 29.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.188e-05/1.434, allocations: 36.7 kB / 0.8806 GB, free: 29.86 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.222e-05/1.434, allocations: 12 kB / 0.8806 GB, free: 29.85 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.895e-05/1.435, allocations: 19.88 kB / 0.8806 GB, free: 29.83 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03186/1.466, allocations: 14.99 MB / 0.8952 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.385e-05/1.466, allocations: 4 kB / 0.8952 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/1.469, allocations: 459.3 kB / 0.8957 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004909/1.474, allocations: 2.038 MB / 0.8977 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006348/1.474, allocations: 49.09 kB / 0.8977 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2939/1.768, allocations: 12.67 MB / 0.9101 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/1.768, allocations: 9.547 kB / 0.9101 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.022/1.79, allocations: 11.2 MB / 0.921 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/1.794, allocations: 0.6503 MB / 0.9217 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/1.796, allocations: 48.77 kB / 0.9217 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003847/1.8, allocations: 200.7 kB / 0.9219 GB, free: 172 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/1.801, allocations: 174.5 kB / 0.9221 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000339/1.801, allocations: 82.09 kB / 0.9221 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01113/1.812, allocations: 4.279 MB / 0.9263 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/1.813, allocations: 3.938 kB / 0.9263 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009155/1.822, allocations: 1.61 MB / 0.9279 GB, free: 170.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007209/1.822, allocations: 193.1 kB / 0.9281 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01145/1.834, allocations: 8.647 MB / 0.9365 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.834, allocations: 1.5 kB / 0.9365 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004978/1.839, allocations: 3.402 MB / 0.9398 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00414/1.843, allocations: 0.7169 MB / 0.9405 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/1.868, allocations: 17.39 MB / 0.9575 GB, free: 151 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004333/1.873, allocations: 4.631 MB / 0.962 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006083/1.879, allocations: 2.783 MB / 0.9648 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/1.88, allocations: 387.4 kB / 0.9651 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.173e-06/1.88, allocations: 0 / 0.9651 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.09824/1.978, allocations: 62.71 MB / 1.026 GB, free: 81.65 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