Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009092/0.0009092, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008708/0.0008708, allocations: 147 kB / 24.9 MB, free: 8.777 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9285/0.9285, allocations: 173.4 MB / 201.5 MB, free: 8.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 3.938 kB / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.275e-05, allocations: 12.22 kB / 268.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.0024/0.002423, allocations: 2.081 MB / 270.6 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006774/0.0031, allocations: 0.5101 MB / 271.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.182e-05/0.003182, allocations: 0 / 271.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.415e-05/0.003276, allocations: 19.8 kB / 271.1 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.792e-05/0.003334, allocations: 23.72 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.003564, allocations: 55.88 kB / 271.2 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.003691, allocations: 127.5 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.003793, allocations: 38.2 kB / 271.3 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.281e-05/0.003886, allocations: 75.81 kB / 271.4 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.6e-05/0.003952, allocations: 39.88 kB / 271.5 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.00397, allocations: 12 kB / 271.5 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.257e-05/0.003983, allocations: 12 kB / 271.5 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.004008, allocations: 27.91 kB / 271.5 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.22e-05/0.00404, allocations: 39.84 kB / 271.5 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.004169, allocations: 91.64 kB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.004171, allocations: 0 / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.004172, allocations: 0 / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.838e-06/0.004175, allocations: 0 / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004912/0.004667, allocations: 320.5 kB / 271.9 MB, free: 2.5 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.004696, allocations: 8.922 kB / 272 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.004728, allocations: 24.92 kB / 272 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.004868, allocations: 137.2 kB / 272.1 MB, free: 2.312 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.004879, allocations: 12.38 kB / 272.1 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.004901, allocations: 20.27 kB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.005124, allocations: 203.8 kB / 272.3 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.005133, allocations: 4.188 kB / 272.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.005142, allocations: 4.375 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.005148, allocations: 7.938 kB / 272.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.499e-05/0.005193, allocations: 35.86 kB / 272.4 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.00553, allocations: 453.9 kB / 272.8 MB, free: 1.523 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.005633, allocations: 91.8 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.809e-05/0.005671, allocations: 50.55 kB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.005686, allocations: 4 kB / 273 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.005706, allocations: 42.55 kB / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.005708, allocations: 0 / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001564/0.005864, allocations: 97.47 kB / 273.1 MB, free: 1.191 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.005913, allocations: 114.8 kB / 273.2 MB, free: 1.055 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.211e-05/0.005975, allocations: 134.2 kB / 273.4 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.779e-06/0.005985, allocations: 25.7 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.006025, allocations: 112 kB / 273.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.418e-05/0.006039, allocations: 23.8 kB / 273.5 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.006069, allocations: 25.69 kB / 273.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.006137, allocations: 322.8 kB / 273.9 MB, free: 400 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.006151, allocations: 16.11 kB / 273.9 MB, free: 384 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.355e-05/0.006184, allocations: 58.86 kB / 273.9 MB, free: 300 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.291e-05/0.006247, allocations: 74.72 kB / 274 MB, free: 200 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.006249, allocations: 0 / 274 MB, free: 200 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.44e-05/0.006334, allocations: 97.58 kB / 274.1 MB, free: 96 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.006346, allocations: 8 kB / 274.1 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.00635, allocations: 0 / 274.1 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.006363, allocations: 4 kB / 274.1 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.006476, allocations: 23.98 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.006479, allocations: 4 kB / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.364e-05/0.006512, allocations: 19.81 kB / 274.2 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.006517, allocations: 4.219 kB / 274.2 MB, free: 32 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.082e-05/0.006588, allocations: 121.8 kB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.253e-05/0.006651, allocations: 57.62 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.006677, allocations: 20.77 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.006679, allocations: 0 / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.006682, allocations: 4 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.006684, allocations: 0 / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.006802, allocations: 97.75 kB / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.006804, allocations: 0 / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.006898, allocations: 35.97 kB / 274.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.0069, allocations: 4 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.00691, allocations: 4 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.006912, allocations: 4 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.006914, allocations: 3.938 kB / 274.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.007037, allocations: 235.6 kB / 274.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.255e-05/0.00705, allocations: 15.84 kB / 274.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.007061, allocations: 0 / 274.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.913e-05/0.007121, allocations: 16.05 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.007146, allocations: 4 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.007149, allocations: 0 / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.947e-05/0.007169, allocations: 24.86 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007169, allocations: 4 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000158/0.007327, allocations: 24 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.486e-05/0.007402, allocations: 92.28 kB / 274.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.043e-05/0.007482, allocations: 52.72 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.007486, allocations: 0 / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.86e-05/0.007504, allocations: 20.86 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.00775, allocations: 43.25 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005131/0.008263, allocations: 319.2 kB / 275.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.414e-05/0.008307, allocations: 75.27 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.67e-05/0.008334, allocations: 8.969 kB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.036e-05/0.008394, allocations: 67.38 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.008395, allocations: 4 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of Templates: time 0.002851/0.01125, allocations: 1.258 MB / 276.8 MB, free: 13.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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: 2.408084724098444]