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.001332/0.001332, allocations: 111.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 79.86 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 62.45 MB / 481.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01562/0.1374, allocations: 15.51 MB / 497 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1476, allocations: 4.931 MB / 0.4901 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002974/0.1506, allocations: 107.8 kB / 0.4902 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009063/0.1598, allocations: 4.988 MB / 0.4951 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006683/0.1665, allocations: 2.474 MB / 0.4975 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.1692, allocations: 1.076 MB / 0.4986 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.1798, allocations: 6.844 MB / 0.5053 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2173/0.3972, allocations: 5.746 MB / 0.5109 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004122/0.4013, allocations: 2.384 MB / 0.5132 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004977/0.4063, allocations: 3.196 MB / 0.5163 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0015/0.4079, allocations: 0.4992 MB / 0.5168 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00302/0.4109, allocations: 1.388 MB / 0.5182 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003306/0.4142, allocations: 2.968 MB / 0.5211 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004006/0.4182, allocations: 3.34 MB / 0.5243 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008224/0.4265, allocations: 10.34 MB / 0.5344 GB, free: 6.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4265, allocations: 0 / 0.5344 GB, free: 6.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4265, allocations: 0 / 0.5344 GB, free: 6.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003532/0.4269, allocations: 0 / 0.5344 GB, free: 6.57 MB / 382.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.01521/0.4421, allocations: 7.397 MB / 0.5417 GB, free: 1.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4421, allocations: 8.938 kB / 0.5417 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01093/0.4531, allocations: 2.716 MB / 0.5443 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009512/0.4626, allocations: 4.257 MB / 0.5485 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/0.463, allocations: 357.7 kB / 0.5488 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00176/0.4647, allocations: 482.6 kB / 0.5493 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02327/0.488, allocations: 14.26 MB / 0.5632 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/0.4882, allocations: 68.22 kB / 0.5633 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005519/0.4888, allocations: 227.8 kB / 0.5635 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004433/0.4932, allocations: 2.708 MB / 0.5661 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/0.5168, allocations: 12.04 MB / 0.5779 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06722/0.584, allocations: 57.31 MB / 0.6338 GB, free: 4.895 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01462/0.5987, allocations: 6.275 MB / 0.64 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004413/0.6031, allocations: 3.706 MB / 0.6436 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.6168, allocations: 8.529 MB / 0.6519 GB, free: 2.129 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/0.6169, allocations: 63.16 kB / 0.652 GB, free: 2.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 4.549e-06/0.6169, allocations: 0 / 0.652 GB, free: 2.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.08051/0.6974, allocations: 30.31 MB / 0.6816 GB, free: 3.613 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.6976, allocations: 242.2 kB / 0.6818 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/0.7076, allocations: 6.685 MB / 0.6883 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007034/0.7084, allocations: 69.7 kB / 0.6884 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003467/0.7118, allocations: 4.407 MB / 0.6927 GB, free: 8.172 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001677/0.7135, allocations: 1.066 MB / 0.6938 GB, free: 7.113 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003017/0.7166, allocations: 1.791 MB / 0.6955 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.7167, allocations: 309.1 kB / 0.6958 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005132/0.7218, allocations: 3.57 MB / 0.6993 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0093/0.7312, allocations: 8.641 MB / 0.7077 GB, free: 6.379 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2386/0.9698, allocations: 13.12 MB / 0.7205 GB, free: 176.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001572/0.97, allocations: 51.34 kB / 0.7206 GB, free: 176.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02816/0.9982, allocations: 14 MB / 0.7343 GB, free: 172.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.9983, allocations: 85.12 kB / 0.7343 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002443/0.9986, allocations: 176.9 kB / 0.7345 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005733/1.004, allocations: 2.288 MB / 0.7367 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006504/1.011, allocations: 2.005 MB / 0.7387 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/1.026, allocations: 14.35 MB / 0.7527 GB, free: 164.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008602/1.034, allocations: 0.5013 MB / 0.7532 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002237/1.037, allocations: 0.5147 MB / 0.7537 GB, free: 164.1 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.006101/1.043, allocations: 2.987 MB / 0.7566 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/1.044, allocations: 0.555 MB / 0.7572 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.055, allocations: 7.072 MB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.062e-05/1.055, allocations: 32 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.579e-05/1.055, allocations: 12 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-05/1.055, allocations: 11.11 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/1.078, allocations: 14.88 MB / 0.7786 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.938e-05/1.078, allocations: 7.938 kB / 0.7787 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/1.08, allocations: 463.3 kB / 0.7791 GB, free: 144.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004516/1.085, allocations: 2.035 MB / 0.7811 GB, free: 142.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003979/1.085, allocations: 48 kB / 0.7811 GB, free: 142.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01375/1.099, allocations: 13.61 MB / 0.7944 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.099, allocations: 4 kB / 0.7944 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.113, allocations: 11.22 MB / 0.8054 GB, free: 117.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/1.115, allocations: 0.6287 MB / 0.806 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009977/1.116, allocations: 48.7 kB / 0.806 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.118, allocations: 203.6 kB / 0.8062 GB, free: 116.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005063/1.119, allocations: 174.5 kB / 0.8064 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/1.119, allocations: 75.98 kB / 0.8065 GB, free: 116.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005954/1.125, allocations: 4.28 MB / 0.8107 GB, free: 112 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.41e-07/1.125, allocations: 0 / 0.8107 GB, free: 112 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007371/1.132, allocations: 1.575 MB / 0.8122 GB, free: 110.4 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.0005181/1.133, allocations: 192.7 kB / 0.8124 GB, free: 110.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.144, allocations: 8.714 MB / 0.8209 GB, free: 101.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/1.144, allocations: 0 / 0.8209 GB, free: 101.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005098/1.149, allocations: 3.406 MB / 0.8242 GB, free: 98.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003962/1.153, allocations: 0.7297 MB / 0.8249 GB, free: 97.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/1.172, allocations: 14.78 MB / 0.8394 GB, free: 82.55 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004453/1.176, allocations: 4.53 MB / 0.8438 GB, free: 77.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005286/1.181, allocations: 2.771 MB / 0.8465 GB, free: 75.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/1.183, allocations: 379.4 kB / 0.8469 GB, free: 74.83 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/1.183, allocations: 4 kB / 0.8469 GB, free: 74.83 MB / 0.545 GB Notification: Performance of Templates: time 0.09157/1.274, allocations: 59.12 MB / 0.9046 GB, free: 16.12 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches