Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0008674/0.0008674, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001168/0.002035, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007287/0.0007287, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009583/0.001687, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.058/1.058, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09143/1.149, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.424e-05, allocations: 5.828 kB / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003687/0.003711, allocations: 2.17 MB / 246.7 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006261/0.004337, allocations: 0.5334 MB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.844e-05/0.004406, allocations: 3.938 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.403e-05/0.00447, allocations: 23.78 kB / 247.2 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.625e-05/0.004526, allocations: 27.73 kB / 247.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.004681, allocations: 59.8 kB / 247.3 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.004813, allocations: 127.5 kB / 247.4 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.182e-05/0.004905, allocations: 38.64 kB / 247.5 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.005007, allocations: 87.67 kB / 247.6 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.254e-05/0.005069, allocations: 47.81 kB / 247.6 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.00509, allocations: 12 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.344e-05/0.005103, allocations: 8 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.005125, allocations: 19.94 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.005158, allocations: 31.94 kB / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.005275, allocations: 79.69 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.108e-06/0.005284, allocations: 0 / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.005286, allocations: 0 / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.005298, allocations: 0 / 247.8 MB, free: 11.07 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004113/0.00571, allocations: 360 kB / 248.1 MB, free: 10.69 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.005739, allocations: 12.03 kB / 248.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.005772, allocations: 20.92 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.005929, allocations: 145.5 kB / 248.3 MB, free: 10.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.00594, allocations: 16.38 kB / 248.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.005964, allocations: 20.27 kB / 248.3 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.00619, allocations: 187.8 kB / 248.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.006198, allocations: 192 / 248.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.006208, allocations: 8.359 kB / 248.5 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.006214, allocations: 7.938 kB / 248.5 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.777e-05/0.006262, allocations: 27.92 kB / 248.6 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.006641, allocations: 465.9 kB / 249 MB, free: 9.711 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.00681, allocations: 103.7 kB / 249.1 MB, free: 9.582 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.829e-05/0.006849, allocations: 46.64 kB / 249.2 MB, free: 9.527 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.006871, allocations: 7.938 kB / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.006894, allocations: 30.56 kB / 249.2 MB, free: 9.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.006896, allocations: 0 / 249.2 MB, free: 9.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001761/0.007072, allocations: 93.53 kB / 249.3 MB, free: 9.383 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.007135, allocations: 118.9 kB / 249.4 MB, free: 9.242 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.883e-05/0.007203, allocations: 134.6 kB / 249.5 MB, free: 9.098 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.007215, allocations: 29.7 kB / 249.6 MB, free: 9.062 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.00726, allocations: 112 kB / 249.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.007275, allocations: 23.84 kB / 249.7 MB, free: 8.926 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.007304, allocations: 25.7 kB / 249.7 MB, free: 8.895 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.007402, allocations: 326.7 kB / 250 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.009e-05/0.007423, allocations: 12 kB / 250 MB, free: 8.555 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.238e-05/0.007465, allocations: 71.59 kB / 250.1 MB, free: 8.457 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.806e-05/0.007533, allocations: 86.89 kB / 250.2 MB, free: 8.348 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.007536, allocations: 4 kB / 250.2 MB, free: 8.344 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.285e-05/0.007618, allocations: 85.47 kB / 250.3 MB, free: 8.254 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.007628, allocations: 4.219 kB / 250.3 MB, free: 8.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.007632, allocations: 8 kB / 250.3 MB, free: 8.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.007642, allocations: 4 kB / 250.3 MB, free: 8.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.007752, allocations: 31.92 kB / 250.3 MB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.007756, allocations: 0 / 250.3 MB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.669e-05/0.007792, allocations: 23.81 kB / 250.4 MB, free: 8.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.007797, allocations: 4 kB / 250.4 MB, free: 8.18 MB / 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 5.619e-05/0.007853, allocations: 117.8 kB / 250.5 MB, free: 8.055 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/0.007925, allocations: 61.67 kB / 250.5 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.004e-05/0.007955, allocations: 16.78 kB / 250.6 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.007958, allocations: 8 kB / 250.6 MB, free: 7.965 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.00796, allocations: 0 / 250.6 MB, free: 7.965 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.007964, allocations: 7.922 kB / 250.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.00808, allocations: 97.73 kB / 250.7 MB, free: 7.844 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.008081, allocations: 0 / 250.7 MB, free: 7.844 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.008213, allocations: 47.95 kB / 250.7 MB, free: 7.797 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.343e-05/0.008226, allocations: 15.91 kB / 250.7 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.008228, allocations: 0 / 250.7 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.008239, allocations: 4 kB / 250.7 MB, free: 7.777 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.008242, allocations: 4 kB / 250.7 MB, free: 7.773 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.008243, allocations: 4 kB / 250.7 MB, free: 7.77 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.008375, allocations: 239.5 kB / 251 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.008389, allocations: 3.984 kB / 251 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.912e-05/0.008448, allocations: 8 kB / 251 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.311e-05/0.008471, allocations: 7.984 kB / 251 MB, free: 7.496 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.008475, allocations: 64 / 251 MB, free: 7.496 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.18e-05/0.008497, allocations: 35.92 kB / 251 MB, free: 7.461 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008497, allocations: 0 / 251 MB, free: 7.461 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.008646, allocations: 23.94 kB / 251.1 MB, free: 7.438 MB / 250.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 7.612e-05/0.008722, allocations: 96.33 kB / 251.1 MB, free: 7.336 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.424e-05/0.008806, allocations: 52.77 kB / 251.2 MB, free: 7.281 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.008811, allocations: 4 kB / 251.2 MB, free: 7.277 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.899e-05/0.00883, allocations: 16.8 kB / 251.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.009075, allocations: 67.67 kB / 251.3 MB, free: 7.191 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.01038, allocations: 331.8 kB / 251.6 MB, free: 6.836 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.288e-05/0.01042, allocations: 79.27 kB / 251.7 MB, free: 6.738 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.606e-05/0.01045, allocations: 8.969 kB / 251.7 MB, free: 6.73 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.477e-05/0.01051, allocations: 71.36 kB / 251.8 MB, free: 6.66 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01051, allocations: 4 kB / 251.8 MB, free: 6.656 MB / 250.7 MB Notification: Performance of Templates: time 0.003104/0.01361, allocations: 1.439 MB / 253.2 MB, free: 5.281 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.6402794597670436]