Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00372/0.003723, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.186/2.186, allocations: 205.4 MB / 222.5 MB, free: 13.87 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 98.8 kB / 270.9 MB, free: 13.39 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2855/0.2855, allocations: 43.55 MB / 362.7 MB, free: 11.34 MB / 266.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004709, allocations: 12 kB / 431.4 MB, free: 20.29 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1192, allocations: 58.86 MB / 490.2 MB, free: 9.363 MB / 330.8 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.4352/0.5545, allocations: 77.53 MB / 0.5544 GB, free: 3.809 MB / 362.8 MB Notification: Performance of NFInst.instExpressions: time 0.04955/0.6041, allocations: 17.3 MB / 0.5713 GB, free: 7.555 MB / 378.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01987/0.624, allocations: 382.9 kB / 0.5717 GB, free: 7.5 MB / 378.8 MB Notification: Performance of NFTyping.typeComponents: time 0.01643/0.6405, allocations: 3.896 MB / 0.5755 GB, free: 4.602 MB / 378.8 MB Notification: Performance of NFTyping.typeBindings: time 0.06727/0.7079, allocations: 11.03 MB / 0.5863 GB, free: 9.961 MB / 394.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.009067/0.717, allocations: 0.8543 MB / 0.5871 GB, free: 9.105 MB / 394.8 MB Notification: Performance of NFFlatten.flatten: time 0.09484/0.8119, allocations: 27.42 MB / 0.6139 GB, free: 13.66 MB / 426.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01566/0.8276, allocations: 7.386 MB / 0.6211 GB, free: 6.191 MB / 426.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004627/0.8323, allocations: 1.643 MB / 0.6227 GB, free: 4.543 MB / 426.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005267/0.8376, allocations: 2.204 MB / 0.6249 GB, free: 2.332 MB / 426.8 MB Notification: Performance of NFPackage.collectConstants: time 0.00126/0.8389, allocations: 236 kB / 0.6251 GB, free: 2.102 MB / 426.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.8423, allocations: 0.9871 MB / 0.626 GB, free: 1.113 MB / 426.8 MB Notification: Performance of NFScalarize.scalarize: time 0.004807/0.8472, allocations: 2.626 MB / 0.6286 GB, free: 14.48 MB / 442.8 MB Notification: Performance of NFVerifyModel.verify: time 0.002427/0.8497, allocations: 1.345 MB / 0.6299 GB, free: 13.12 MB / 442.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.8641, allocations: 8.896 MB / 0.6386 GB, free: 4.203 MB / 442.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8642, allocations: 0 / 0.6386 GB, free: 4.203 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.775e-06/0.8642, allocations: 4 kB / 0.6386 GB, free: 4.199 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0003665/0.8646, allocations: 0 / 0.6386 GB, free: 4.199 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.02511/0.8897, allocations: 6.984 MB / 0.6454 GB, free: 13.13 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.8898, allocations: 8.031 kB / 0.6454 GB, free: 13.12 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0889/0.9787, allocations: 8.276 MB / 0.6535 GB, free: 4.828 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.9951, allocations: 4.802 MB / 0.6582 GB, free: 15.94 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005719/0.9957, allocations: 385.9 kB / 0.6586 GB, free: 15.56 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002746/0.9985, allocations: 0.5035 MB / 0.6591 GB, free: 15.06 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04754/1.046, allocations: 15.68 MB / 0.6744 GB, free: 14.35 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003413/1.046, allocations: 71.31 kB / 0.6745 GB, free: 14.28 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001831/1.048, allocations: 251.7 kB / 0.6747 GB, free: 14.04 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01012/1.058, allocations: 3.056 MB / 0.6777 GB, free: 10.97 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04588/1.104, allocations: 13.17 MB / 0.6905 GB, free: 13.76 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.521/1.625, allocations: 61.29 MB / 0.7504 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03813/1.664, allocations: 6.754 MB / 0.757 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03447/1.698, allocations: 9.324 MB / 0.7661 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.388e-05/1.698, allocations: 67.2 kB / 0.7662 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=269): time 9.157e-06/1.698, allocations: 0 / 0.7662 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.1369/1.835, allocations: 32.12 MB / 0.7975 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.835, allocations: 250.1 kB / 0.7978 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01601/1.851, allocations: 7.215 MB / 0.8048 GB, free: 109 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009674/1.852, allocations: 74.95 kB / 0.8049 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003936/1.856, allocations: 4.568 MB / 0.8093 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002027/1.858, allocations: 1.173 MB / 0.8105 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001544/1.86, allocations: 183.3 kB / 0.8107 GB, free: 103 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006559/1.861, allocations: 0.6941 MB / 0.8113 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01069/1.871, allocations: 3.668 MB / 0.8149 GB, free: 98.65 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01776/1.889, allocations: 8.948 MB / 0.8237 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/1.902, allocations: 5.588 MB / 0.8291 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/1.902, allocations: 56 kB / 0.8292 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03681/1.939, allocations: 13.68 MB / 0.8425 GB, free: 67.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/1.939, allocations: 89.81 kB / 0.8426 GB, free: 67.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002639/1.94, allocations: 188 kB / 0.8428 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007659/1.947, allocations: 1.816 MB / 0.8446 GB, free: 65.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01302/1.96, allocations: 2.117 MB / 0.8466 GB, free: 63.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02348/1.984, allocations: 12.34 MB / 0.8587 GB, free: 51.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/1.994, allocations: 0.5266 MB / 0.8592 GB, free: 50.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001966/1.996, allocations: 0.5404 MB / 0.8597 GB, free: 50.08 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 63 (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 (1102): * Single equations (assignments): 1095 * 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.008143/2.005, allocations: 3.223 MB / 0.8629 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/2.006, allocations: 0.59 MB / 0.8634 GB, free: 46.24 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02068/2.027, allocations: 6.967 MB / 0.8702 GB, free: 39.26 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.11e-05/2.027, allocations: 35.95 kB / 0.8703 GB, free: 39.22 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.311e-05/2.027, allocations: 8 kB / 0.8703 GB, free: 39.21 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.706e-05/2.027, allocations: 15.95 kB / 0.8703 GB, free: 39.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04437/2.072, allocations: 15.53 MB / 0.8855 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.607e-05/2.072, allocations: 10.88 kB / 0.8855 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005184/2.077, allocations: 0.5226 MB / 0.886 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00708/2.084, allocations: 1.524 MB / 0.8875 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008617/2.085, allocations: 62.19 kB / 0.8875 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02312/2.108, allocations: 11.47 MB / 0.8987 GB, free: 9.785 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/2.108, allocations: 15.77 kB / 0.8987 GB, free: 9.773 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02958/2.138, allocations: 12.15 MB / 0.9106 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004863/2.143, allocations: 1.184 MB / 0.9118 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002126/2.145, allocations: 56 kB / 0.9118 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005859/2.151, allocations: 204.7 kB / 0.912 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.152, allocations: 193.9 kB / 0.9122 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004906/2.153, allocations: 81.02 kB / 0.9123 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01296/2.166, allocations: 4.653 MB / 0.9168 GB, free: 7.031 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.12e-07/2.166, allocations: 4 kB / 0.9168 GB, free: 7.027 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01156/2.177, allocations: 1.69 MB / 0.9185 GB, free: 5.344 MB / 0.5261 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 (254): * Single equations (assignments): 249 * 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.001452/2.179, allocations: 210.9 kB / 0.9187 GB, free: 5.137 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3505/2.529, allocations: 8.983 MB / 0.9275 GB, free: 183.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/2.529, allocations: 1.125 kB / 0.9275 GB, free: 183.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01065/2.54, allocations: 3.491 MB / 0.9309 GB, free: 182.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006346/2.546, allocations: 0.7025 MB / 0.9315 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04574/2.592, allocations: 19.14 MB / 0.9502 GB, free: 173.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01023/2.602, allocations: 5.043 MB / 0.9552 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003545/2.606, allocations: 481.6 kB / 0.9556 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.142e-06/2.606, allocations: 0 / 0.9556 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.2579/2.864, allocations: 148.7 MB / 1.101 GB, free: 31.21 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches