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.001557/0.001557, allocations: 80.25 kB / 22.21 MB, free: 2.277 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.00125/0.00125, allocations: 169.5 kB / 25.61 MB, free: 8.91 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.968/0.968, allocations: 177 MB / 205.9 MB, free: 4.414 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.1345/0.1345, allocations: 34.87 MB / 297.4 MB, free: 13.32 MB / 282.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.232e-06/1.232e-06, allocations: 0 / 380 MB, free: 22.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.841e-05/1.964e-05, allocations: 4.594 kB / 380 MB, free: 22.72 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.008574/0.008593, allocations: 14.6 MB / 394.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006034/0.01463, allocations: 4.837 MB / 399.5 MB, free: 3.211 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.01583, allocations: 123.4 kB / 399.6 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.02002, allocations: 5.292 MB / 404.9 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003705/0.02373, allocations: 2.659 MB / 407.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.02521, allocations: 1.189 MB / 408.7 MB, free: 9.914 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006739/0.03195, allocations: 7.622 MB / 416.4 MB, free: 2.277 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005347/0.0373, allocations: 5.122 MB / 421.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00603/0.04333, allocations: 4.702 MB / 426.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003724/0.04705, allocations: 3.429 MB / 429.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007947/0.04785, allocations: 0.5078 MB / 430.1 MB, free: 4.422 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.04942, allocations: 1.358 MB / 431.5 MB, free: 3.062 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001769/0.05119, allocations: 3.183 MB / 434.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.05268, allocations: 1.967 MB / 436.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005251/0.05793, allocations: 6.675 MB / 443.3 MB, free: 7.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.05794, allocations: 0 / 443.3 MB, free: 7.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.05794, allocations: 0 / 443.3 MB, free: 7.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.391e-05/0.05802, allocations: 0 / 443.3 MB, free: 7.199 MB / 362.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.008425/0.06645, allocations: 7.714 MB / 451 MB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.06648, allocations: 12.03 kB / 451 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006065/0.07255, allocations: 2.385 MB / 453.4 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.07721, allocations: 3.217 MB / 456.6 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.0774, allocations: 357.6 kB / 457 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007341/0.07813, allocations: 484.1 kB / 457.4 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01043/0.08856, allocations: 7.962 MB / 465.4 MB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001187/0.08868, allocations: 63.45 kB / 465.5 MB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000386/0.08907, allocations: 223.8 kB / 465.7 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001842/0.09091, allocations: 2.332 MB / 468 MB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005788/0.0967, allocations: 3.453 MB / 471.5 MB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3019/0.3986, allocations: 61.99 MB / 0.521 GB, free: 58.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00534/0.4039, allocations: 2.387 MB / 0.5233 GB, free: 58.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006129/0.4045, allocations: 0.6296 MB / 0.5239 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005033/0.4096, allocations: 4.962 MB / 0.5288 GB, free: 57.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.4096, allocations: 52.58 kB / 0.5288 GB, free: 57.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=176): time 3.767e-06/0.4096, allocations: 3.406 kB / 0.5288 GB, free: 57.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=185): time 0.0203/0.4299, allocations: 8.685 MB / 0.5373 GB, free: 53.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/0.43, allocations: 227.6 kB / 0.5375 GB, free: 53.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004314/0.4343, allocations: 5.294 MB / 0.5427 GB, free: 48.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.076e-05/0.4344, allocations: 56.64 kB / 0.5427 GB, free: 48.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001852/0.4362, allocations: 5.082 MB / 0.5477 GB, free: 43.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004825/0.4367, allocations: 0.8262 MB / 0.5485 GB, free: 43.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/0.438, allocations: 1.897 MB / 0.5503 GB, free: 41.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.438, allocations: 480.7 kB / 0.5508 GB, free: 40.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.4391, allocations: 0.7817 MB / 0.5516 GB, free: 39.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/0.4423, allocations: 8.905 MB / 0.5603 GB, free: 27.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.4478, allocations: 10.55 MB / 0.5706 GB, free: 13.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.852e-05/0.4479, allocations: 56 kB / 0.5706 GB, free: 13.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1111) (initialization): time 0.006934/0.4548, allocations: 7.057 MB / 0.5775 GB, free: 6.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.324e-05/0.4549, allocations: 88 kB / 0.5776 GB, free: 6.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.455, allocations: 194.7 kB / 0.5778 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.4563, allocations: 0.6123 MB / 0.5784 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/0.459, allocations: 1.907 MB / 0.5802 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003583/0.4626, allocations: 5.341 MB / 0.5855 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/0.4665, allocations: 387.6 kB / 0.5858 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005481/0.4671, allocations: 460 kB / 0.5863 GB, free: 13.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * 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 (1059): * Single equations (assignments): 1052 * 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,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001897/0.469, allocations: 0.8762 MB / 0.5871 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007115/0.4697, allocations: 0.5263 MB / 0.5876 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/0.4726, allocations: 1.474 MB / 0.5891 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.596e-05/0.4726, allocations: 23.98 kB / 0.5891 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.4726, allocations: 8 kB / 0.5891 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.4727, allocations: 7.969 kB / 0.5891 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.4843, allocations: 6.707 MB / 0.5957 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.4843, allocations: 7.938 kB / 0.5957 GB, free: 3.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.4851, allocations: 251.6 kB / 0.5959 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.4865, allocations: 371 kB / 0.5963 GB, free: 2.844 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.4866, allocations: 40 kB / 0.5963 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.4909, allocations: 4.968 MB / 0.6012 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.4909, allocations: 12.03 kB / 0.6012 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.495, allocations: 2.876 MB / 0.604 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/0.4956, allocations: 471.5 kB / 0.6044 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003889/0.496, allocations: 36 kB / 0.6045 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.4972, allocations: 40 kB / 0.6045 GB, free: 10.06 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.4974, allocations: 132.6 kB / 0.6046 GB, free: 9.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.4975, allocations: 55.92 kB / 0.6047 GB, free: 9.875 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002392/0.4999, allocations: 2.114 MB / 0.6067 GB, free: 7.781 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4999, allocations: 3.391 kB / 0.6067 GB, free: 7.781 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005267/0.5051, allocations: 1.473 MB / 0.6082 GB, free: 6.309 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (150): * Single equations (assignments): 145 * 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 {(2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004028/0.5055, allocations: 198.8 kB / 0.6084 GB, free: 6.105 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005841/0.5114, allocations: 3.929 MB / 0.6122 GB, free: 2.176 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.5114, allocations: 5.938 kB / 0.6122 GB, free: 2.172 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/0.5127, allocations: 0.9658 MB / 0.6132 GB, free: 1.164 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.5152, allocations: 0.615 MB / 0.6138 GB, free: 0.582 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/0.5301, allocations: 10.9 MB / 0.6244 GB, free: 5.461 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001907/0.532, allocations: 1.791 MB / 0.6261 GB, free: 3.633 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001518/0.5336, allocations: 0.6958 MB / 0.6268 GB, free: 2.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009805/0.5345, allocations: 0.7832 MB / 0.6276 GB, free: 2.145 MB / 458.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5345, allocations: 0 / 0.6276 GB, free: 2.145 MB / 458.7 MB Notification: Performance of Templates: time 0.2592/0.7937, allocations: 45.36 MB / 0.6719 GB, free: 166.1 MB / 490.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.382028453052044]