Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 161.4 kB / 24.55 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9543/0.9543, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.865e-05/1.994e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008291/0.008311, allocations: 10.73 MB / 283.7 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005391/0.0137, allocations: 3.757 MB / 287.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007249/0.01443, allocations: 75.62 kB / 287.5 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.01719, allocations: 2.885 MB / 290.4 MB, free: 24 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1284/0.1456, allocations: 1.861 MB / 292.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1468, allocations: 0.6353 MB / 292.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00473/0.1516, allocations: 3.976 MB / 296.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003485/0.1551, allocations: 3.079 MB / 300 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002821/0.1579, allocations: 2.213 MB / 302.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.1604, allocations: 2.172 MB / 304.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007021/0.1611, allocations: 320.6 kB / 304.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001379/0.1625, allocations: 0.9913 MB / 305.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.1635, allocations: 1.934 MB / 307.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.1648, allocations: 1.208 MB / 308.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.1682, allocations: 4.274 MB / 313.1 MB, free: 7.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1682, allocations: 0 / 313.1 MB, free: 7.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1683, allocations: 0 / 313.1 MB, free: 7.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001508/0.1684, allocations: 0 / 313.1 MB, free: 7.547 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.008571/0.177, allocations: 5.615 MB / 318.7 MB, free: 1.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.177, allocations: 12.03 kB / 318.7 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003814/0.1808, allocations: 2.321 MB / 321 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/0.1833, allocations: 2.019 MB / 323 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1834, allocations: 229.6 kB / 323.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003647/0.1837, allocations: 300.3 kB / 323.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00742/0.1911, allocations: 6.019 MB / 329.6 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.574e-05/0.1912, allocations: 45.88 kB / 329.6 MB, free: 6.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002969/0.1915, allocations: 147.7 kB / 329.8 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001791/0.1933, allocations: 1.806 MB / 331.6 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006738/0.2001, allocations: 3.297 MB / 334.9 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02545/0.2255, allocations: 41.68 MB / 376.5 MB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005726/0.2312, allocations: 1.835 MB / 378.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000676/0.2319, allocations: 0.492 MB / 378.9 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000273/0.2322, allocations: 130.5 kB / 379 MB, free: 4.457 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.2322, allocations: 48.98 kB / 379 MB, free: 4.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 5.35e-06/0.2322, allocations: 4 kB / 379.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=133): time 0.02062/0.2529, allocations: 9.462 MB / 388.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.2529, allocations: 141.2 kB / 388.7 MB, free: 10.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003304/0.2562, allocations: 3.434 MB / 392.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.383e-05/0.2563, allocations: 49.7 kB / 392.1 MB, free: 7.215 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001507/0.2578, allocations: 3.289 MB / 395.4 MB, free: 3.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004157/0.2582, allocations: 0.5841 MB / 396 MB, free: 3.363 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/0.2593, allocations: 1.269 MB / 397.3 MB, free: 2.078 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.2594, allocations: 476.8 kB / 397.7 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.2604, allocations: 0.5849 MB / 398.3 MB, free: 1.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003293/0.2637, allocations: 6.072 MB / 404.4 MB, free: 8.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005235/0.2689, allocations: 7.345 MB / 411.7 MB, free: 14.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.697e-05/0.269, allocations: 36 kB / 411.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.007198/0.2762, allocations: 5.415 MB / 417.2 MB, free: 9.098 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/0.2762, allocations: 60 kB / 417.3 MB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.555e-05/0.2763, allocations: 132 kB / 417.4 MB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.2776, allocations: 0.6289 MB / 418 MB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/0.2798, allocations: 1.318 MB / 419.3 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.2828, allocations: 3.223 MB / 422.5 MB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.2851, allocations: 339.7 kB / 422.9 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003046/0.2854, allocations: 372 kB / 423.2 MB, free: 2.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (699): * Single equations (assignments): 695 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001132/0.2866, allocations: 0.6419 MB / 423.9 MB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/0.287, allocations: 345.9 kB / 424.2 MB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/0.2891, allocations: 1.403 MB / 425.6 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.2891, allocations: 16 kB / 425.6 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2891, allocations: 8 kB / 425.6 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.2892, allocations: 11.92 kB / 425.7 MB, free: 488 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006386/0.2955, allocations: 4.738 MB / 430.4 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.2956, allocations: 0 / 430.4 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005371/0.2961, allocations: 219.7 kB / 430.6 MB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.2971, allocations: 442.9 kB / 431 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-05/0.2972, allocations: 39.97 kB / 431.1 MB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002577/0.2998, allocations: 2.926 MB / 434 MB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2998, allocations: 3.938 kB / 434 MB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.3029, allocations: 2.399 MB / 436.4 MB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.3033, allocations: 297.8 kB / 436.7 MB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.3035, allocations: 23.12 kB / 436.7 MB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006397/0.3041, allocations: 107.8 kB / 436.8 MB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.3043, allocations: 96.42 kB / 436.9 MB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-05/0.3044, allocations: 51.97 kB / 437 MB, free: 4.965 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001715/0.3061, allocations: 1.462 MB / 438.4 MB, free: 3.512 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3061, allocations: 0 / 438.4 MB, free: 3.512 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00365/0.3097, allocations: 0.953 MB / 439.4 MB, free: 2.559 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (101): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004424/0.3102, allocations: 166.5 kB / 439.6 MB, free: 2.391 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1144/0.4246, allocations: 2.79 MB / 442.3 MB, free: 129.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4246, allocations: 1.094 kB / 442.3 MB, free: 129.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.4257, allocations: 0.6702 MB / 443 MB, free: 129.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.4275, allocations: 389.6 kB / 443.4 MB, free: 129.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009276/0.4367, allocations: 6.773 MB / 450.2 MB, free: 126.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.438, allocations: 1.142 MB / 451.3 MB, free: 126.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002449/0.4405, allocations: 1.558 MB / 452.9 MB, free: 126.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.4409, allocations: 255.4 kB / 453.1 MB, free: 126.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4409, allocations: 1.375 kB / 453.1 MB, free: 126.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03771/0.4787, allocations: 29.29 MB / 482.4 MB, free: 106.6 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.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: 3.9207796598784626]