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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 162.2 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9468/0.9468, allocations: 177 MB / 205.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2779/0.2779, allocations: 34.86 MB / 296.6 MB, free: 0.5 MB / 266.7 MB " [Timeout remaining time 180] 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=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 378.8 MB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.656e-05, allocations: 6.312 kB / 378.8 MB, free: 2.363 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01132/0.01134, allocations: 14.93 MB / 393.7 MB, free: 3.371 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009054/0.02039, allocations: 4.855 MB / 398.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.02219, allocations: 123.4 kB / 398.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004824/0.02701, allocations: 5.354 MB / 404 MB, free: 9.008 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003743/0.03076, allocations: 2.651 MB / 406.7 MB, free: 6.344 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.03214, allocations: 1.185 MB / 407.9 MB, free: 5.156 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004891/0.03704, allocations: 7.62 MB / 415.5 MB, free: 13.52 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003401/0.04044, allocations: 5.127 MB / 420.6 MB, free: 8.316 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002779/0.04322, allocations: 3.645 MB / 424.3 MB, free: 4.664 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002875/0.04609, allocations: 3.523 MB / 427.8 MB, free: 1.133 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004743/0.04657, allocations: 0.5117 MB / 428.3 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.04802, allocations: 1.358 MB / 429.6 MB, free: 15.26 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002103/0.05012, allocations: 3.218 MB / 432.9 MB, free: 12.04 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.05165, allocations: 1.974 MB / 434.8 MB, free: 10.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006759/0.0584, allocations: 6.691 MB / 441.5 MB, free: 3.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.05841, allocations: 0 / 441.5 MB, free: 3.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.897e-06/0.05841, allocations: 0 / 441.5 MB, free: 3.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001905/0.0586, allocations: 0 / 441.5 MB, free: 3.34 MB / 410.7 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.1508/0.2094, allocations: 8.017 MB / 449.5 MB, free: 99.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2094, allocations: 8.5 kB / 449.6 MB, free: 99.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006469/0.2159, allocations: 3.384 MB / 452.9 MB, free: 99.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/0.2203, allocations: 3.781 MB / 456.7 MB, free: 97.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.2204, allocations: 359.6 kB / 457.1 MB, free: 97.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004845/0.2209, allocations: 481 kB / 457.5 MB, free: 97.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.2312, allocations: 8.821 MB / 466.4 MB, free: 92.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/0.2313, allocations: 72.17 kB / 466.4 MB, free: 92.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003982/0.2317, allocations: 225.5 kB / 466.7 MB, free: 92.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002375/0.2341, allocations: 2.705 MB / 469.4 MB, free: 91.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008567/0.2427, allocations: 4.82 MB / 474.2 MB, free: 90.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03579/0.2785, allocations: 62.12 MB / 0.5237 GB, free: 35.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006932/0.2854, allocations: 3.057 MB / 0.5267 GB, free: 32.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.2867, allocations: 1.096 MB / 0.5278 GB, free: 31.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005509/0.2922, allocations: 5.519 MB / 0.5332 GB, free: 25.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.2922, allocations: 70.92 kB / 0.5332 GB, free: 25.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=236): time 4.108e-06/0.2922, allocations: 0 / 0.5332 GB, free: 25.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.03704/0.3293, allocations: 21.97 MB / 0.5547 GB, free: 3.754 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3293, allocations: 243.5 kB / 0.5549 GB, free: 3.469 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004916/0.3342, allocations: 5.084 MB / 0.5599 GB, free: 14.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002667/0.3345, allocations: 65.7 kB / 0.56 GB, free: 14.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00306/0.3376, allocations: 4.822 MB / 0.5647 GB, free: 9.453 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009898/0.3386, allocations: 1.144 MB / 0.5658 GB, free: 8.301 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001847/0.3404, allocations: 1.918 MB / 0.5677 GB, free: 6.363 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003718/0.3408, allocations: 484.7 kB / 0.5681 GB, free: 5.887 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.3429, allocations: 1.133 MB / 0.5692 GB, free: 4.746 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005801/0.3487, allocations: 8.679 MB / 0.5777 GB, free: 8.625 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009295/0.358, allocations: 10.75 MB / 0.5882 GB, free: 10.46 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.721e-05/0.3581, allocations: 56 kB / 0.5883 GB, free: 10.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.01366/0.3717, allocations: 8.895 MB / 0.5969 GB, free: 1.496 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.194e-05/0.3718, allocations: 84 kB / 0.597 GB, free: 1.414 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001548/0.372, allocations: 176 kB / 0.5972 GB, free: 1.242 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1647/0.5366, allocations: 1.474 MB / 0.5986 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006413/0.543, allocations: 2.005 MB / 0.6006 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007162/0.5502, allocations: 7.659 MB / 0.6081 GB, free: 117.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/0.5546, allocations: 0.5616 MB / 0.6086 GB, free: 117.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008084/0.5555, allocations: 0.5145 MB / 0.6091 GB, free: 117.2 MB / 458.7 MB 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.001852/0.5573, allocations: 0.8626 MB / 0.61 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007193/0.558, allocations: 0.5655 MB / 0.6105 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005062/0.5631, allocations: 3.57 MB / 0.614 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.5631, allocations: 36.23 kB / 0.614 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.5631, allocations: 11.5 kB / 0.614 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.5631, allocations: 13.17 kB / 0.6141 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.5743, allocations: 9.217 MB / 0.6231 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.5743, allocations: 3.281 kB / 0.6231 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5754, allocations: 461.6 kB / 0.6235 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002643/0.578, allocations: 1.24 MB / 0.6247 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.5782, allocations: 50.66 kB / 0.6248 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00636/0.5846, allocations: 7.231 MB / 0.6318 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.5846, allocations: 7.438 kB / 0.6318 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007707/0.5923, allocations: 5.061 MB / 0.6368 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.5933, allocations: 491.7 kB / 0.6372 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000433/0.5937, allocations: 59 kB / 0.6373 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5951, allocations: 252.4 kB / 0.6375 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003984/0.5955, allocations: 183.3 kB / 0.6377 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.5956, allocations: 71.03 kB / 0.6378 GB, free: 108 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002983/0.5986, allocations: 2.199 MB / 0.6399 GB, free: 107.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5986, allocations: 0 / 0.6399 GB, free: 107.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006114/0.6047, allocations: 1.735 MB / 0.6416 GB, free: 107.2 MB / 458.7 MB 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.0004807/0.6052, allocations: 211.5 kB / 0.6418 GB, free: 107 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007307/0.6125, allocations: 5.023 MB / 0.6467 GB, free: 105.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.6125, allocations: 2.719 kB / 0.6467 GB, free: 105.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003098/0.6156, allocations: 1.956 MB / 0.6486 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.6181, allocations: 0.6176 MB / 0.6492 GB, free: 104.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.6314, allocations: 11.79 MB / 0.6608 GB, free: 94.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/0.6329, allocations: 1.856 MB / 0.6626 GB, free: 93.11 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003785/0.6367, allocations: 2.22 MB / 0.6647 GB, free: 91.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006864/0.6436, allocations: 344.5 kB / 0.6651 GB, free: 91.51 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6436, allocations: 0 / 0.6651 GB, free: 91.51 MB / 458.7 MB Notification: Performance of Templates: time 0.09135/0.7349, allocations: 57.25 MB / 0.721 GB, free: 35.11 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1426474349573255]