Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001837/0.001837, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001973/0.001973, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 18.57 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.53/1.53, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 272.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.032e-05/3.198e-05, allocations: 2.312 kB / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003677/0.003709, allocations: 2.023 MB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.004819, allocations: 0.5414 MB / 274.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.004919, allocations: 4 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.005044, allocations: 15.8 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.005191, allocations: 31.72 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.005452, allocations: 67.73 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.005652, allocations: 119.5 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.005796, allocations: 42.56 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.00593, allocations: 75.86 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.14e-05/0.006022, allocations: 39.89 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.006051, allocations: 11.94 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.296e-05/0.006074, allocations: 12 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.006111, allocations: 23.91 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.228e-05/0.006173, allocations: 39.91 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.006535, allocations: 143.4 kB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.006537, allocations: 0 / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006539, allocations: 0 / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006543, allocations: 0 / 275.5 MB, free: 14.68 MB / 266.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.0006592/0.007202, allocations: 451.8 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.007235, allocations: 8.031 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.007307, allocations: 28.84 kB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.007555, allocations: 148.4 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.007571, allocations: 8.375 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/0.007611, allocations: 20.33 kB / 276.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.008121, allocations: 260.1 kB / 276.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.008137, allocations: 4.125 kB / 276.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.008152, allocations: 4.375 kB / 276.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.008163, allocations: 7.938 kB / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002049/0.008368, allocations: 79.89 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007792/0.009147, allocations: 0.6485 MB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.009522, allocations: 161.3 kB / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.009671, allocations: 79.12 kB / 277.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.009703, allocations: 7.984 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.009742, allocations: 41.33 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.009743, allocations: 0 / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004766/0.01022, allocations: 173.7 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.01032, allocations: 118.8 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.01049, allocations: 192.6 kB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.01051, allocations: 33.7 kB / 277.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.01062, allocations: 158.8 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.01065, allocations: 27.78 kB / 278.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-05/0.0107, allocations: 31.38 kB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002509/0.01095, allocations: 0.5 MB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.952e-05/0.01103, allocations: 23.98 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.01116, allocations: 97.47 kB / 278.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.01138, allocations: 133.4 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.01138, allocations: 4 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002528/0.01164, allocations: 129.4 kB / 279 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.01165, allocations: 4 kB / 279 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01166, allocations: 0 / 279 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.01167, allocations: 4 kB / 279 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.01178, allocations: 31.92 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.01178, allocations: 4 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/0.01185, allocations: 11.89 kB / 279.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.01186, allocations: 8 kB / 279.1 MB, free: 10.73 MB / 266.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 0.0001344/0.01199, allocations: 176.7 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.01216, allocations: 93.58 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.01223, allocations: 16.77 kB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.01224, allocations: 4 kB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.01224, allocations: 0 / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01225, allocations: 0 / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.0125, allocations: 160.5 kB / 279.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.0125, allocations: 0 / 279.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.01266, allocations: 35.91 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.01267, allocations: 4 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.01268, allocations: 7.938 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.01268, allocations: 8 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01268, allocations: 0 / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.01325, allocations: 474.5 kB / 280 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.01327, allocations: 15.94 kB / 280 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.01329, allocations: 4 kB / 280 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.0134, allocations: 4 kB / 280 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.01345, allocations: 7.984 kB / 280 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.01346, allocations: 4 kB / 280.1 MB, free: 9.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.713e-05/0.01355, allocations: 149.6 kB / 280.2 MB, free: 9.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01355, allocations: 4.031 kB / 280.2 MB, free: 9.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.01383, allocations: 27.94 kB / 280.2 MB, free: 9.484 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 0.0001207/0.01395, allocations: 107.2 kB / 280.3 MB, free: 9.371 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002858/0.01424, allocations: 92.05 kB / 280.4 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01424, allocations: 0 / 280.4 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.46e-05/0.01432, allocations: 36.05 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.01479, allocations: 59.33 kB / 280.5 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006902/0.01548, allocations: 362.8 kB / 280.9 MB, free: 8.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.01559, allocations: 97.3 kB / 281 MB, free: 8.672 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.011e-05/0.01563, allocations: 12.97 kB / 281 MB, free: 8.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.01568, allocations: 20.48 kB / 281 MB, free: 8.641 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01568, allocations: 0 / 281 MB, free: 8.641 MB / 266.7 MB Notification: Performance of Templates: time 0.004585/0.02027, allocations: 1.201 MB / 282.2 MB, free: 7.473 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.480804557912052]