Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009668/0.0009668, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001032/0.001032, allocations: 165.8 kB / 25.7 MB, free: 8.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.838/0.838, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.891e-05/2.014e-05, allocations: 6.25 kB / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008731/0.008751, allocations: 11.12 MB / 262.6 MB, free: 12.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005304/0.01406, allocations: 3.966 MB / 266.6 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007041/0.01476, allocations: 75.62 kB / 266.7 MB, free: 8.047 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002914/0.01767, allocations: 2.912 MB / 269.6 MB, free: 5.125 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.02, allocations: 2.022 MB / 271.6 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.02074, allocations: 0.6353 MB / 272.2 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002823/0.02356, allocations: 4.134 MB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.026, allocations: 3.276 MB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.02822, allocations: 2.417 MB / 282.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002564/0.03079, allocations: 2.139 MB / 284.2 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005358/0.03132, allocations: 336 kB / 284.5 MB, free: 6.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.03276, allocations: 1.014 MB / 285.6 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.03433, allocations: 2.065 MB / 287.6 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.03546, allocations: 1.293 MB / 288.9 MB, free: 1.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003549/0.03901, allocations: 4.565 MB / 293.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.03902, allocations: 0 / 293.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03902, allocations: 0 / 293.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.803e-05/0.03908, allocations: 0 / 293.5 MB, free: 13.09 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.004438/0.04351, allocations: 4.682 MB / 298.2 MB, free: 8.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.04354, allocations: 11.98 kB / 298.2 MB, free: 8.344 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002599/0.04614, allocations: 1.101 MB / 299.3 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.04791, allocations: 1.766 MB / 301 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.04802, allocations: 242.2 kB / 301.3 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.04837, allocations: 315.8 kB / 301.6 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004503/0.05288, allocations: 4.845 MB / 306.4 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.966e-05/0.05295, allocations: 39.64 kB / 306.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/0.0532, allocations: 151.8 kB / 306.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00137/0.05457, allocations: 1.681 MB / 308.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003388/0.05796, allocations: 2.38 MB / 310.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01925/0.07721, allocations: 30.64 MB / 341.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.07938, allocations: 1.112 MB / 342.4 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.0797, allocations: 276.3 kB / 342.7 MB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003243/0.08294, allocations: 2.889 MB / 345.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.08297, allocations: 47.05 kB / 345.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 2.304e-06/0.08297, allocations: 4 kB / 345.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004719/0.08769, allocations: 2.582 MB / 348.2 MB, free: 4.168 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/0.08787, allocations: 141 kB / 348.4 MB, free: 3.996 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/0.09004, allocations: 3.247 MB / 351.6 MB, free: 0.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.193e-05/0.09009, allocations: 45.69 kB / 351.6 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1065/0.1966, allocations: 3.206 MB / 354.8 MB, free: 94.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006232/0.1973, allocations: 0.5015 MB / 355.4 MB, free: 94.45 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008962/0.1982, allocations: 1.129 MB / 356.5 MB, free: 94.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.198e-05/0.1982, allocations: 312 kB / 356.8 MB, free: 94.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009258/0.1991, allocations: 0.6797 MB / 357.5 MB, free: 93.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.2009, allocations: 4.516 MB / 362 MB, free: 88.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/0.2043, allocations: 5.727 MB / 367.7 MB, free: 83.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.411e-05/0.2044, allocations: 38.5 kB / 367.7 MB, free: 83.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004826/0.2092, allocations: 4.061 MB / 371.8 MB, free: 82.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.2092, allocations: 65.12 kB / 371.9 MB, free: 82.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/0.2093, allocations: 140.1 kB / 372 MB, free: 82.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004042/0.2097, allocations: 226.4 kB / 372.2 MB, free: 82.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002228/0.212, allocations: 1.353 MB / 373.6 MB, free: 81.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.213, allocations: 1.524 MB / 375.1 MB, free: 80.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/0.2161, allocations: 277.9 kB / 375.4 MB, free: 80.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002962/0.2164, allocations: 330.2 kB / 375.7 MB, free: 79.76 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 36 (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 (743): * Single equations (assignments): 739 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001343/0.2177, allocations: 0.6205 MB / 376.3 MB, free: 79.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003659/0.2181, allocations: 190.7 kB / 376.5 MB, free: 79.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007891/0.2189, allocations: 0.5957 MB / 377.1 MB, free: 78.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.959e-05/0.2189, allocations: 19.94 kB / 377.1 MB, free: 78.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.2189, allocations: 3.562 kB / 377.1 MB, free: 78.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.2189, allocations: 3.609 kB / 377.1 MB, free: 78.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.223, allocations: 3.074 MB / 380.2 MB, free: 76.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.2231, allocations: 4 kB / 380.2 MB, free: 76.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.2235, allocations: 163.5 kB / 380.4 MB, free: 76.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001627/0.2237, allocations: 53.89 kB / 380.4 MB, free: 76.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.2237, allocations: 26.09 kB / 380.4 MB, free: 76.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008167/0.2245, allocations: 1.431 MB / 381.9 MB, free: 75.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2245, allocations: 4 kB / 381.9 MB, free: 75.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2259, allocations: 1.338 MB / 383.2 MB, free: 73.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006676/0.2265, allocations: 360.5 kB / 383.6 MB, free: 73.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.2267, allocations: 19.92 kB / 383.6 MB, free: 73.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.2272, allocations: 25.88 kB / 383.6 MB, free: 73.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.2274, allocations: 69.81 kB / 383.7 MB, free: 73.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.994e-05/0.2274, allocations: 31.89 kB / 383.7 MB, free: 73.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001092/0.2285, allocations: 1.181 MB / 384.9 MB, free: 72.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2285, allocations: 0 / 384.9 MB, free: 72.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003977/0.2325, allocations: 0.9146 MB / 385.8 MB, free: 71.55 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (92): * Single equations (assignments): 88 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004213/0.2329, allocations: 156.8 kB / 386 MB, free: 71.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.236, allocations: 2.301 MB / 388.3 MB, free: 69.11 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001624/0.2362, allocations: 100.2 kB / 388.4 MB, free: 69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004208/0.2366, allocations: 381 kB / 388.7 MB, free: 68.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.2387, allocations: 0.5676 MB / 389.3 MB, free: 68.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.2488, allocations: 6.946 MB / 396.2 MB, free: 61.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008928/0.2497, allocations: 1.194 MB / 397.4 MB, free: 59.81 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001336/0.251, allocations: 483.4 kB / 397.9 MB, free: 59.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/0.2516, allocations: 0.5032 MB / 398.4 MB, free: 58.84 MB / 330.7 MB Notification: Performance of SimCode: time 2.816e-06/0.2516, allocations: 0 / 398.4 MB, free: 58.84 MB / 330.7 MB Notification: Performance of Templates: time 0.03623/0.2879, allocations: 24 MB / 422.4 MB, free: 34.9 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4093485586345196]