Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.0009785/0.0009785, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001124/0.001124, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 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 1.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.536e-05/2.737e-05, allocations: 13.06 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002918/0.002945, allocations: 2.042 MB / 275.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009631/0.003908, allocations: 0.5491 MB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.004063, allocations: 7.938 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.004198, allocations: 15.8 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001799/0.004378, allocations: 27.72 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.004639, allocations: 55.81 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.004832, allocations: 135.5 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.004993, allocations: 37.55 kB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.005133, allocations: 75.81 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.824e-05/0.005221, allocations: 43.88 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.479e-05/0.005256, allocations: 8 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.005273, allocations: 12 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.996e-05/0.005303, allocations: 23.91 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.714e-05/0.00535, allocations: 43.84 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.005543, allocations: 87.64 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.005547, allocations: 0 / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005548, allocations: 0 / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.005553, allocations: 8 kB / 276.5 MB, free: 14.11 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004729/0.006026, allocations: 452.1 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.006066, allocations: 12.03 kB / 277 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.006111, allocations: 24.84 kB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.006278, allocations: 152.4 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.006292, allocations: 8.375 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.006323, allocations: 24.3 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.006614, allocations: 232.7 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.006625, allocations: 4.188 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.006637, allocations: 4.375 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.006648, allocations: 7.938 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.484e-05/0.006702, allocations: 31.91 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.007195, allocations: 0.6406 MB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.007396, allocations: 137.3 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.84e-05/0.007445, allocations: 51.14 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.007473, allocations: 4 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.007498, allocations: 37.38 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.0075, allocations: 0 / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002139/0.007714, allocations: 113.5 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/0.007784, allocations: 118.7 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.785e-05/0.007882, allocations: 188.9 kB / 278.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.007896, allocations: 29.83 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.007975, allocations: 162.8 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.007997, allocations: 23.78 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.008037, allocations: 35.36 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.008174, allocations: 0.4883 MB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.466e-05/0.008188, allocations: 7.984 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.064e-05/0.008239, allocations: 81.47 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.283e-05/0.008322, allocations: 105.4 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.008324, allocations: 0 / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001194/0.008444, allocations: 101.6 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.008462, allocations: 10.34 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.008471, allocations: 3.938 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.008484, allocations: 4.219 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.366e-05/0.008558, allocations: 31.97 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.008566, allocations: 7.922 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.78e-05/0.008604, allocations: 19.86 kB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.008614, allocations: 8 kB / 279.8 MB, free: 10.44 MB / 266.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 9.171e-05/0.008706, allocations: 160.6 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.008785, allocations: 73.53 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.008841, allocations: 16.78 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.008846, allocations: 7.984 kB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.008848, allocations: 0 / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.008854, allocations: 4 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.008994, allocations: 125.2 kB / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.008995, allocations: 0 / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.022e-05/0.009085, allocations: 39.91 kB / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.009089, allocations: 4 kB / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.009102, allocations: 0 / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.009104, allocations: 4 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.009105, allocations: 0 / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.009302, allocations: 351.2 kB / 280.6 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.009319, allocations: 15.84 kB / 280.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.009336, allocations: 12.02 kB / 280.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.821e-05/0.009395, allocations: 8 kB / 280.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.009431, allocations: 3.938 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.009437, allocations: 7.984 kB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.00949, allocations: 135.2 kB / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00949, allocations: 0 / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003069/0.009797, allocations: 24 kB / 280.8 MB, free: 9.398 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 (15): * Single equations (assignments): 15 * 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 0.000173/0.00997, allocations: 99.19 kB / 280.9 MB, free: 9.293 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.01014, allocations: 71.64 kB / 281 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.01014, allocations: 4 kB / 281 MB, free: 9.215 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.228e-05/0.01016, allocations: 11.69 kB / 281 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.01052, allocations: 58.72 kB / 281.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007998/0.01132, allocations: 339 kB / 281.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.666e-05/0.01138, allocations: 79.33 kB / 281.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.227e-05/0.01141, allocations: 4.984 kB / 281.5 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.225e-05/0.01149, allocations: 94.12 kB / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of SimCode: time 1.663e-06/0.01149, allocations: 3.938 kB / 281.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of Templates: time 0.005924/0.01742, allocations: 1.288 MB / 282.9 MB, free: 7.32 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.78616467025131]