Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001213/0.001213, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001999/0.003212, 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.001195/0.001195, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001724/0.002919, 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 0.9411/0.9411, allocations: 177.2 MB / 189.6 MB, free: 5.293 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09453/1.036, allocations: 53.65 MB / 243.3 MB, free: 15.57 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.313e-05, allocations: 5.688 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003445/0.003468, allocations: 2.135 MB / 246.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.004577, allocations: 0.6112 MB / 247.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.004706, allocations: 7.938 kB / 247.3 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.246e-05/0.004799, allocations: 19.8 kB / 247.3 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001497/0.004949, allocations: 31.72 kB / 247.3 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.005225, allocations: 71.72 kB / 247.4 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.005421, allocations: 135.5 kB / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.005549, allocations: 38.7 kB / 247.5 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.005708, allocations: 91.78 kB / 247.6 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.214e-05/0.0058, allocations: 39.89 kB / 247.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.117e-05/0.005831, allocations: 12 kB / 247.7 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.005851, allocations: 8 kB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.005908, allocations: 31.86 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.186e-05/0.00596, allocations: 31.94 kB / 247.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.006162, allocations: 103.5 kB / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.461e-05/0.006177, allocations: 0 / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.006178, allocations: 0 / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.006194, allocations: 0 / 247.9 MB, free: 10.95 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005807/0.006775, allocations: 379.9 kB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.006809, allocations: 8.031 kB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.029e-05/0.006859, allocations: 20.92 kB / 248.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.007075, allocations: 153.5 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.007093, allocations: 16.36 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.007124, allocations: 16.36 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.007453, allocations: 219.7 kB / 248.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.007466, allocations: 192 / 248.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.007478, allocations: 4.375 kB / 248.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.381e-05/0.007502, allocations: 7.938 kB / 248.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.757e-05/0.007579, allocations: 35.92 kB / 248.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005515/0.008131, allocations: 453.9 kB / 249.1 MB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.008352, allocations: 103.7 kB / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.338e-05/0.008445, allocations: 46.64 kB / 249.3 MB, free: 9.367 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.008473, allocations: 4 kB / 249.3 MB, free: 9.363 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.008501, allocations: 46.62 kB / 249.3 MB, free: 9.309 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.008503, allocations: 0 / 249.3 MB, free: 9.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002327/0.008735, allocations: 101.6 kB / 249.4 MB, free: 9.203 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.008799, allocations: 110.8 kB / 249.5 MB, free: 9.07 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.00891, allocations: 153.2 kB / 249.7 MB, free: 8.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.008923, allocations: 25.7 kB / 249.7 MB, free: 8.879 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.71e-05/0.00899, allocations: 116.5 kB / 249.8 MB, free: 8.762 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.009011, allocations: 15.8 kB / 249.9 MB, free: 8.746 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.009056, allocations: 37.69 kB / 249.9 MB, free: 8.703 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.009226, allocations: 322.8 kB / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.124e-05/0.009247, allocations: 8 kB / 250.2 MB, free: 8.371 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.256e-05/0.009299, allocations: 58.84 kB / 250.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.679e-05/0.009386, allocations: 82.73 kB / 250.4 MB, free: 8.184 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.009389, allocations: 0 / 250.4 MB, free: 8.184 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001294/0.009518, allocations: 81.47 kB / 250.4 MB, free: 8.098 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.009533, allocations: 12.22 kB / 250.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.009539, allocations: 0 / 250.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.009551, allocations: 4 kB / 250.4 MB, free: 8.082 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.009754, allocations: 36.16 kB / 250.5 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.009761, allocations: 4 kB / 250.5 MB, free: 8.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.009822, allocations: 15.88 kB / 250.5 MB, free: 8.027 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.009832, allocations: 4 kB / 250.5 MB, free: 8.023 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 9.133e-05/0.009923, allocations: 124.6 kB / 250.6 MB, free: 7.891 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.01004, allocations: 73.59 kB / 250.7 MB, free: 7.812 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.555e-05/0.0101, allocations: 20.78 kB / 250.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.0101, allocations: 0 / 250.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.0101, allocations: 0 / 250.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.01011, allocations: 7.984 kB / 250.7 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.0103, allocations: 89.81 kB / 250.8 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.0103, allocations: 3.938 kB / 250.8 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.01047, allocations: 47.42 kB / 250.9 MB, free: 7.629 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.01052, allocations: 27.81 kB / 250.9 MB, free: 7.602 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.01053, allocations: 4 kB / 250.9 MB, free: 7.598 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.01054, allocations: 4 kB / 250.9 MB, free: 7.594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01054, allocations: 0 / 250.9 MB, free: 7.594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.01055, allocations: 8 kB / 250.9 MB, free: 7.586 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/0.01073, allocations: 239.5 kB / 251.1 MB, free: 7.332 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.01075, allocations: 0 / 251.1 MB, free: 7.332 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.01086, allocations: 8 kB / 251.1 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.0109, allocations: 3.984 kB / 251.2 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.0109, allocations: 4 kB / 251.2 MB, free: 7.316 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.458e-05/0.01095, allocations: 37.47 kB / 251.2 MB, free: 7.277 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01095, allocations: 4 kB / 251.2 MB, free: 7.273 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002759/0.01122, allocations: 23.95 kB / 251.2 MB, free: 7.25 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 0.0001086/0.01133, allocations: 88.39 kB / 251.3 MB, free: 7.156 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.01145, allocations: 52.72 kB / 251.4 MB, free: 7.102 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.01146, allocations: 4 kB / 251.4 MB, free: 7.098 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.01149, allocations: 24.77 kB / 251.4 MB, free: 7.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.0119, allocations: 63.14 kB / 251.4 MB, free: 7.008 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.01394, allocations: 332 kB / 251.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.01413, allocations: 79.31 kB / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.01418, allocations: 4.656 kB / 251.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.162e-05/0.01428, allocations: 71.36 kB / 251.9 MB, free: 6.473 MB / 250.7 MB Notification: Performance of SimCode: time 1.192e-06/0.01428, allocations: 0 / 251.9 MB, free: 6.473 MB / 250.7 MB Notification: Performance of Templates: time 0.004336/0.01861, allocations: 1.495 MB / 253.4 MB, free: 5.043 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.590446922928095]