Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001677/0.001677, allocations: 103.5 kB / 20.43 MB, free: 1.199 MB / 14.72 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.001712/0.001712, allocations: 194.2 kB / 23.71 MB, free: 4.426 MB / 14.72 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 1.475/1.475, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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.ExactlyClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 51.92 kB / 370.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2563, allocations: 52.18 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003377/0.2596, allocations: 2.011 MB / 425.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2607, allocations: 0.5377 MB / 425.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.2608, allocations: 7.938 kB / 425.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.2609, allocations: 15.8 kB / 425.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.261, allocations: 39.7 kB / 425.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.2613, allocations: 67.8 kB / 425.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.2615, allocations: 127.5 kB / 425.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.2616, allocations: 42.03 kB / 425.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.783e-05/0.2617, allocations: 55.78 kB / 425.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.312e-05/0.2618, allocations: 43.78 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.2618, allocations: 19.88 kB / 426 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.263e-05/0.2619, allocations: 12 kB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-05/0.2619, allocations: 35.89 kB / 426 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.262, allocations: 55.67 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.2622, allocations: 141.6 kB / 426.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2622, allocations: 0 / 426.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.2622, allocations: 4 kB / 426.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.2622, allocations: 0 / 426.2 MB, free: 11.26 MB / 334.1 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.0006302/0.2628, allocations: 381.6 kB / 426.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2629, allocations: 8.031 kB / 426.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.2629, allocations: 24.83 kB / 426.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.2632, allocations: 158.2 kB / 426.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.2632, allocations: 8.375 kB / 426.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.2632, allocations: 20.27 kB / 426.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.2637, allocations: 258.8 kB / 427.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2638, allocations: 4 kB / 427.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.2638, allocations: 4 kB / 427.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2638, allocations: 4 kB / 427.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.264, allocations: 91.33 kB / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007497/0.2648, allocations: 0.5041 MB / 427.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.2651, allocations: 139.7 kB / 427.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.2653, allocations: 70.81 kB / 427.9 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2653, allocations: 7.938 kB / 427.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.2653, allocations: 34.56 kB / 427.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.2653, allocations: 0 / 427.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005171/0.2659, allocations: 181.4 kB / 428.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.266, allocations: 118.9 kB / 428.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.2661, allocations: 162.2 kB / 428.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.2661, allocations: 29.7 kB / 428.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.692e-05/0.2662, allocations: 112.5 kB / 428.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.2662, allocations: 31.78 kB / 428.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.2663, allocations: 33.67 kB / 428.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2664, allocations: 326.8 kB / 428.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2665, allocations: 35.97 kB / 428.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.2667, allocations: 137.6 kB / 429.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.267, allocations: 185.5 kB / 429.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.267, allocations: 0 / 429.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000448/0.2675, allocations: 201.2 kB / 429.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2675, allocations: 11.98 kB / 429.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2675, allocations: 8 kB / 429.5 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.2675, allocations: 4 kB / 429.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.2677, allocations: 47.92 kB / 429.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.2677, allocations: 7.984 kB / 429.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.2678, allocations: 19.89 kB / 429.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.2678, allocations: 8.312 kB / 429.6 MB, free: 7.602 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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 0.0001215/0.268, allocations: 141.8 kB / 429.7 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.2681, allocations: 93.83 kB / 429.8 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.2682, allocations: 20.72 kB / 429.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2682, allocations: 0 / 429.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2682, allocations: 4 kB / 429.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2682, allocations: 3.984 kB / 429.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.2684, allocations: 145.2 kB / 430 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2684, allocations: 0 / 430 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.2686, allocations: 35.97 kB / 430 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.2686, allocations: 11.88 kB / 430 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2686, allocations: 8 kB / 430 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2686, allocations: 3.938 kB / 430 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2686, allocations: 4 kB / 430 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005576/0.2692, allocations: 375.5 kB / 430.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.2693, allocations: 31.8 kB / 430.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.2693, allocations: 4 kB / 430.4 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.2695, allocations: 16.05 kB / 430.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.2695, allocations: 0 / 430.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.2695, allocations: 7.984 kB / 430.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.451e-05/0.2696, allocations: 128 kB / 430.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2696, allocations: 0 / 430.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003178/0.2699, allocations: 24 kB / 430.6 MB, free: 6.5 MB / 334.1 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.0001107/0.27, allocations: 107.2 kB / 430.7 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.2704, allocations: 120 kB / 430.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2704, allocations: 0 / 430.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.746e-05/0.2705, allocations: 31.91 kB / 430.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004891/0.2709, allocations: 53.45 kB / 430.9 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007769/0.2717, allocations: 439.2 kB / 431.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.2718, allocations: 103 kB / 431.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.176e-05/0.2719, allocations: 17.42 kB / 431.5 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.2719, allocations: 15.44 kB / 431.5 MB, free: 5.578 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2719, allocations: 0 / 431.5 MB, free: 5.578 MB / 334.1 MB Notification: Performance of Templates: time 0.004421/0.2763, allocations: 1.542 MB / 433 MB, free: 4.102 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.454235820099711]