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.001851/0.001851, allocations: 103.5 kB / 20.96 MB, free: 3.449 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.001937/0.001937, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 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 1.575/1.575, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.3512/0.3512, allocations: 34.25 MB / 295.2 MB, free: 0.6602 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.713e-06/1.713e-06, allocations: 0 / 377.2 MB, free: 2.906 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.125e-05/3.296e-05, allocations: 8.641 kB / 377.2 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.02115/0.02119, allocations: 14.89 MB / 392.1 MB, free: 3.941 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.03365, allocations: 4.851 MB / 397 MB, free: 15.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003181/0.03683, allocations: 119.4 kB / 397.1 MB, free: 14.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.0487, allocations: 5.358 MB / 402.4 MB, free: 9.582 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008245/0.05695, allocations: 2.643 MB / 405.1 MB, free: 6.926 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003272/0.06022, allocations: 1.185 MB / 406.3 MB, free: 5.738 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01237/0.07259, allocations: 7.613 MB / 413.9 MB, free: 14.11 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008147/0.08074, allocations: 5.13 MB / 419 MB, free: 8.895 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007127/0.08787, allocations: 3.645 MB / 422.7 MB, free: 5.242 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006558/0.09442, allocations: 3.523 MB / 426.2 MB, free: 1.711 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001513/0.09594, allocations: 0.5117 MB / 426.7 MB, free: 1.199 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003191/0.09913, allocations: 1.35 MB / 428.1 MB, free: 15.84 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004678/0.1038, allocations: 3.214 MB / 431.3 MB, free: 12.62 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004166/0.108, allocations: 1.974 MB / 433.2 MB, free: 10.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01569/0.1237, allocations: 10.47 MB / 443.7 MB, free: 148 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1237, allocations: 4 kB / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1237, allocations: 0 / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003784/0.1241, allocations: 0 / 443.7 MB, free: 144 kB / 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.1734/0.2974, allocations: 8.665 MB / 452.4 MB, free: 96.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.2975, allocations: 11.69 kB / 452.4 MB, free: 96.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/0.3122, allocations: 3.378 MB / 455.8 MB, free: 96.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.3225, allocations: 3.829 MB / 459.6 MB, free: 94.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.3228, allocations: 359.7 kB / 459.9 MB, free: 94.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/0.3245, allocations: 482.3 kB / 460.4 MB, free: 94.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.3433, allocations: 9.469 MB / 469.9 MB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001925/0.3435, allocations: 65.06 kB / 470 MB, free: 88.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006323/0.3441, allocations: 232.5 kB / 470.2 MB, free: 88.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004165/0.3483, allocations: 2.703 MB / 472.9 MB, free: 87.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/0.3655, allocations: 5.183 MB / 478.1 MB, free: 86.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0668/0.4323, allocations: 67.41 MB / 0.5327 GB, free: 24.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.4437, allocations: 3.186 MB / 0.5358 GB, free: 21.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002223/0.4459, allocations: 1.13 MB / 0.5369 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01192/0.4579, allocations: 5.607 MB / 0.5424 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.4579, allocations: 70.92 kB / 0.5424 GB, free: 14.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=236): time 6.983e-06/0.4579, allocations: 0 / 0.5424 GB, free: 14.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.06929/0.5272, allocations: 22.32 MB / 0.5642 GB, free: 7.699 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002031/0.5274, allocations: 239.5 kB / 0.5645 GB, free: 7.414 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/0.5383, allocations: 6.33 MB / 0.5707 GB, free: 1.082 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006604/0.539, allocations: 65.7 kB / 0.5707 GB, free: 1.012 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005412/0.5444, allocations: 5.119 MB / 0.5757 GB, free: 11.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002153/0.5465, allocations: 1.222 MB / 0.5769 GB, free: 10.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003948/0.5505, allocations: 2.301 MB / 0.5792 GB, free: 8.297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000236/0.5507, allocations: 480.7 kB / 0.5796 GB, free: 7.824 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003347/0.5541, allocations: 1.247 MB / 0.5808 GB, free: 6.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01178/0.5658, allocations: 9.062 MB / 0.5897 GB, free: 10.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1934/0.7592, allocations: 11.38 MB / 0.6008 GB, free: 111.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002179/0.7594, allocations: 52.94 kB / 0.6008 GB, free: 111.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.0199/0.7793, allocations: 9.125 MB / 0.6098 GB, free: 109.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.7794, allocations: 83.91 kB / 0.6098 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001696/0.7796, allocations: 176.2 kB / 0.61 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00516/0.7848, allocations: 1.518 MB / 0.6115 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006263/0.791, allocations: 1.998 MB / 0.6134 GB, free: 109.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.8016, allocations: 8.01 MB / 0.6213 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007336/0.8089, allocations: 0.563 MB / 0.6218 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001912/0.8108, allocations: 0.5147 MB / 0.6223 GB, free: 105.7 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.00411/0.8149, allocations: 0.9813 MB / 0.6233 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/0.8165, allocations: 0.5661 MB / 0.6238 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009541/0.8261, allocations: 3.699 MB / 0.6274 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-05/0.8261, allocations: 31.22 kB / 0.6275 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.592e-05/0.8261, allocations: 10.06 kB / 0.6275 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/0.8262, allocations: 12.47 kB / 0.6275 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02674/0.8529, allocations: 10.74 MB / 0.638 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/0.853, allocations: 4.844 kB / 0.638 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/0.8554, allocations: 456.1 kB / 0.6384 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005627/0.861, allocations: 1.28 MB / 0.6397 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005604/0.8616, allocations: 51.88 kB / 0.6397 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/0.8739, allocations: 7.548 MB / 0.6471 GB, free: 96.81 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.8739, allocations: 9.344 kB / 0.6471 GB, free: 96.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/0.887, allocations: 5.364 MB / 0.6523 GB, free: 94.94 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/0.8885, allocations: 497.2 kB / 0.6528 GB, free: 94.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/0.8897, allocations: 49.42 kB / 0.6529 GB, free: 94.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003229/0.8929, allocations: 261.3 kB / 0.6531 GB, free: 94.56 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006684/0.8936, allocations: 180.7 kB / 0.6533 GB, free: 94.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002871/0.8939, allocations: 76.16 kB / 0.6533 GB, free: 94.51 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004619/0.8985, allocations: 2.614 MB / 0.6559 GB, free: 93.49 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.8985, allocations: 0 / 0.6559 GB, free: 93.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008425/0.9069, allocations: 1.725 MB / 0.6576 GB, free: 91.77 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.0008738/0.9078, allocations: 217 kB / 0.6578 GB, free: 91.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01058/0.9184, allocations: 5.512 MB / 0.6632 GB, free: 86.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/0.9184, allocations: 0 / 0.6632 GB, free: 86.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004497/0.9229, allocations: 2.092 MB / 0.6652 GB, free: 84.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004972/0.9278, allocations: 0.632 MB / 0.6658 GB, free: 84.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/0.9505, allocations: 11.92 MB / 0.6775 GB, free: 72.58 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006023/0.9565, allocations: 3.689 MB / 0.6811 GB, free: 68.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005435/0.962, allocations: 2.218 MB / 0.6832 GB, free: 66.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.9634, allocations: 344.4 kB / 0.6836 GB, free: 66.29 MB / 458.7 MB Notification: Performance of SimCode: time 1.342e-06/0.9634, allocations: 0 / 0.6836 GB, free: 66.29 MB / 458.7 MB Notification: Performance of Templates: time 0.08591/1.049, allocations: 57.19 MB / 0.7394 GB, free: 9.719 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.118475864990614]