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.001327/0.001327, allocations: 118.5 kB / 18.41 MB, free: 4.648 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.001329/0.001329, allocations: 182.7 kB / 21.34 MB, free: 1.723 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.374/1.374, allocations: 222.9 MB / 247 MB, free: 4.211 MB / 190.1 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 0.001528/0.001528, allocations: 47.91 kB / 358.6 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.09203, allocations: 49.44 MB / 408.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003264/0.09532, allocations: 2.001 MB / 410.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008981/0.09625, allocations: 0.5298 MB / 410.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.226e-05/0.09634, allocations: 0 / 410.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.09646, allocations: 19.8 kB / 410.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.09659, allocations: 27.73 kB / 410.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.09682, allocations: 55.88 kB / 410.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000168/0.097, allocations: 119.6 kB / 410.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.09715, allocations: 61.39 kB / 410.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.365e-05/0.09723, allocations: 47.8 kB / 410.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.202e-05/0.09733, allocations: 59.75 kB / 411 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.09736, allocations: 12 kB / 411 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.32e-05/0.09739, allocations: 11.94 kB / 411 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.09743, allocations: 27.86 kB / 411 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.61e-05/0.0975, allocations: 55.67 kB / 411.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.0977, allocations: 135.4 kB / 411.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.09771, allocations: 0 / 411.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09771, allocations: 0 / 411.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.09772, allocations: 0 / 411.2 MB, free: 3.789 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006144/0.09834, allocations: 438.9 kB / 411.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.09838, allocations: 8.031 kB / 411.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.09842, allocations: 16.84 kB / 411.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.09868, allocations: 207 kB / 411.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.09871, allocations: 8.375 kB / 411.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.09875, allocations: 16.38 kB / 411.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.09923, allocations: 251.4 kB / 412.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.09927, allocations: 11.88 kB / 412.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.09929, allocations: 4 kB / 412.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.0993, allocations: 8 kB / 412.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.09956, allocations: 87.86 kB / 412.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000653/0.1002, allocations: 0.5921 MB / 412.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003458/0.1006, allocations: 147.9 kB / 413 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.1008, allocations: 74.62 kB / 413.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1008, allocations: 0 / 413.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.1008, allocations: 46.5 kB / 413.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.132e-06/0.1008, allocations: 0 / 413.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005201/0.1014, allocations: 185.3 kB / 413.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.1014, allocations: 110.9 kB / 413.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.1016, allocations: 130.1 kB / 413.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1016, allocations: 29.7 kB / 413.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.1017, allocations: 116.1 kB / 413.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.1017, allocations: 27.78 kB / 413.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.1018, allocations: 37.7 kB / 413.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1019, allocations: 326.8 kB / 414.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.102, allocations: 35.97 kB / 414.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.1022, allocations: 140.5 kB / 414.2 MB, free: 456 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.1026, allocations: 189.5 kB / 414.4 MB, free: 216 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1026, allocations: 4 kB / 414.4 MB, free: 212 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003778/0.1029, allocations: 193.8 kB / 414.6 MB, free: 12 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.103, allocations: 12.09 kB / 414.6 MB, free: 0 / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.103, allocations: 4.047 kB / 414.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.103, allocations: 4 kB / 414.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.1032, allocations: 51.84 kB / 414.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.1032, allocations: 7.938 kB / 414.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1033, allocations: 24.25 kB / 414.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.1033, allocations: 8 kB / 414.7 MB, free: 15.9 MB / 350.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.0001125/0.1035, allocations: 141.7 kB / 414.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.1036, allocations: 97.47 kB / 415 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.334e-05/0.1037, allocations: 12.72 kB / 415 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1037, allocations: 4 kB / 415 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1037, allocations: 3.984 kB / 415 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.1037, allocations: 0 / 415 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.104, allocations: 209.5 kB / 415.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.104, allocations: 0 / 415.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.1042, allocations: 31.98 kB / 415.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1042, allocations: 0 / 415.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.1043, allocations: 12 kB / 415.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1043, allocations: 3.984 kB / 415.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1043, allocations: 0 / 415.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.1048, allocations: 379.4 kB / 415.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.454e-05/0.1049, allocations: 93.09 kB / 415.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.1049, allocations: 3.984 kB / 415.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.1051, allocations: 8 kB / 415.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.1051, allocations: 7.984 kB / 415.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.1051, allocations: 4 kB / 415.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.7e-05/0.1052, allocations: 102.2 kB / 415.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1052, allocations: 0 / 415.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000319/0.1055, allocations: 27.95 kB / 415.8 MB, free: 14.68 MB / 350.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.0001083/0.1056, allocations: 111.1 kB / 416 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.106, allocations: 123.7 kB / 416.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.106, allocations: 0.9375 kB / 416.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1061, allocations: 27.98 kB / 416.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.1066, allocations: 63.94 kB / 416.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/0.1073, allocations: 419.4 kB / 416.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.1077, allocations: 0.72 MB / 417.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.1077, allocations: 15.44 kB / 417.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1078, allocations: 0 / 417.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of Templates: time 0.003394/0.1112, allocations: 1.541 MB / 418.8 MB, free: 11.6 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 7.000657943077385]