Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.0009039/0.0009039, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.000825/0.000825, allocations: 147.1 kB / 24.89 MB, free: 8.727 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.8985/0.8985, allocations: 173.4 MB / 201.5 MB, free: 8.723 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.ClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.906e-05/2.045e-05, allocations: 6.312 kB / 268.4 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002388/0.002408, allocations: 2.049 MB / 270.5 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000693/0.003101, allocations: 0.5334 MB / 271 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.775e-05/0.003189, allocations: 3.938 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.668e-05/0.003286, allocations: 19.86 kB / 271 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.003407, allocations: 27.73 kB / 271.1 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.003578, allocations: 51.81 kB / 271.1 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.003712, allocations: 131.5 kB / 271.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.003824, allocations: 38.27 kB / 271.3 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.693e-05/0.003921, allocations: 79.75 kB / 271.4 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.917e-05/0.00399, allocations: 35.88 kB / 271.4 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.004012, allocations: 12 kB / 271.4 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.653e-05/0.004029, allocations: 12 kB / 271.4 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.004059, allocations: 31.91 kB / 271.5 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.004097, allocations: 35.91 kB / 271.5 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.00424, allocations: 95.58 kB / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-06/0.004241, allocations: 0 / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004242, allocations: 0 / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.004245, allocations: 3.938 kB / 271.6 MB, free: 2.863 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003633/0.004608, allocations: 320.5 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.004639, allocations: 12.92 kB / 271.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.004672, allocations: 16.92 kB / 271.9 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.004809, allocations: 153.6 kB / 272.1 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.004819, allocations: 8.375 kB / 272.1 MB, free: 2.316 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.004844, allocations: 16.33 kB / 272.1 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.005067, allocations: 207.8 kB / 272.3 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.005076, allocations: 192 / 272.3 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.005087, allocations: 8.375 kB / 272.3 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.005093, allocations: 7.938 kB / 272.3 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.559e-05/0.005139, allocations: 35.86 kB / 272.4 MB, free: 2.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003492/0.005488, allocations: 461.9 kB / 272.8 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.005637, allocations: 107.7 kB / 272.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.005675, allocations: 46.78 kB / 273 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.00569, allocations: 4 kB / 273 MB, free: 1.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.005709, allocations: 34.56 kB / 273 MB, free: 1.297 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.00571, allocations: 0 / 273 MB, free: 1.297 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001479/0.005858, allocations: 101.5 kB / 273.1 MB, free: 1.191 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.005908, allocations: 118.8 kB / 273.2 MB, free: 1.051 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.922e-05/0.005967, allocations: 126 kB / 273.3 MB, free: 0.918 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.005979, allocations: 29.7 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.9e-05/0.006018, allocations: 112 kB / 273.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.006033, allocations: 23.78 kB / 273.5 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.006059, allocations: 25.7 kB / 273.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.811e-05/0.006127, allocations: 326.8 kB / 273.8 MB, free: 396 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.006141, allocations: 11.98 kB / 273.9 MB, free: 384 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.273e-05/0.006174, allocations: 58.8 kB / 273.9 MB, free: 300 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.546e-05/0.006229, allocations: 78.91 kB / 274 MB, free: 196 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.006231, allocations: 0 / 274 MB, free: 196 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.734e-05/0.006308, allocations: 81.7 kB / 274.1 MB, free: 108 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.006319, allocations: 12 kB / 274.1 MB, free: 96 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.006323, allocations: 3.984 kB / 274.1 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.006333, allocations: 7.938 kB / 274.1 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.189e-05/0.006395, allocations: 23.94 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.006401, allocations: 11.98 kB / 274.1 MB, free: 48 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.007e-05/0.006431, allocations: 7.953 kB / 274.1 MB, free: 40 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.006438, allocations: 11.94 kB / 274.1 MB, free: 28 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.009e-05/0.006508, allocations: 125.7 kB / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.006568, allocations: 57.67 kB / 274.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.006606, allocations: 20.78 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.006608, allocations: 4 kB / 274.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.006609, allocations: 0 / 274.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.006614, allocations: 3.984 kB / 274.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.006725, allocations: 93.75 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.006726, allocations: 0 / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.006806, allocations: 31.98 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.006808, allocations: 0 / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.006818, allocations: 3.984 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.006821, allocations: 4 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006821, allocations: 4 kB / 274.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.006938, allocations: 243.5 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.389e-05/0.006952, allocations: 19.83 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.006963, allocations: 0 / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.699e-05/0.00702, allocations: 8 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.007044, allocations: 7.984 kB / 274.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.007047, allocations: 0 / 274.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.712e-05/0.007065, allocations: 20.84 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007065, allocations: 0 / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00016/0.007225, 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 (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 6.941e-05/0.007294, allocations: 88.39 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.86e-05/0.007373, allocations: 56.69 kB / 274.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.007377, allocations: 8 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.869e-05/0.007396, allocations: 16.8 kB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.007629, allocations: 46.98 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004806/0.008109, allocations: 324.2 kB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.003e-05/0.00815, allocations: 71.33 kB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.877e-05/0.008178, allocations: 4.984 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.586e-05/0.008234, allocations: 67.36 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.008235, allocations: 3.938 kB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Templates: time 0.002594/0.01083, allocations: 1.223 MB / 276.7 MB, free: 13.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.5210177153348923]