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.0008998/0.0008998, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001147/0.002047, 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.0007065/0.0007065, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009111/0.001618, 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.9426/0.9426, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0869/1.029, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.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.282e-06/1.282e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/1.936e-05, allocations: 10.25 kB / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005741/0.005761, allocations: 2.114 MB / 246.6 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008052/0.006566, allocations: 0.5761 MB / 247.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.105e-05/0.006657, allocations: 3.938 kB / 247.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.097e-05/0.006718, allocations: 19.8 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.241e-05/0.0068, allocations: 31.78 kB / 247.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.006983, allocations: 51.81 kB / 247.3 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.007132, allocations: 127.5 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.007242, allocations: 42.25 kB / 247.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.007356, allocations: 79.81 kB / 247.5 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.21e-05/0.007438, allocations: 43.88 kB / 247.6 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.007464, allocations: 8 kB / 247.6 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.721e-05/0.007481, allocations: 12 kB / 247.6 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.976e-05/0.007511, allocations: 23.88 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.079e-05/0.007551, allocations: 31.94 kB / 247.7 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.007703, allocations: 91.55 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.007715, allocations: 0 / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.007715, allocations: 0 / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.007728, allocations: 0 / 247.7 MB, free: 11.08 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.0004654/0.008194, allocations: 356.1 kB / 248.1 MB, free: 10.71 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.008224, allocations: 8.031 kB / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.111e-05/0.008265, allocations: 20.92 kB / 248.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003182/0.01145, allocations: 137.6 kB / 248.3 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.01146, allocations: 12.38 kB / 248.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.01149, allocations: 16.38 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.01177, allocations: 199.8 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.01178, allocations: 4.188 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.01179, allocations: 4.375 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.0118, allocations: 7.938 kB / 248.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.095e-05/0.01186, allocations: 35.91 kB / 248.5 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004018/0.01226, allocations: 457.9 kB / 249 MB, free: 9.738 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.01245, allocations: 107.9 kB / 249.1 MB, free: 9.605 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.624e-05/0.0125, allocations: 42.64 kB / 249.1 MB, free: 9.555 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.01252, allocations: 4 kB / 249.1 MB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.01254, allocations: 42.55 kB / 249.2 MB, free: 9.5 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.01254, allocations: 0 / 249.2 MB, free: 9.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001905/0.01273, allocations: 101.5 kB / 249.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.01279, allocations: 110.9 kB / 249.4 MB, free: 9.262 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.024e-05/0.01286, allocations: 130.7 kB / 249.5 MB, free: 9.121 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.01287, allocations: 29.7 kB / 249.5 MB, free: 9.086 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/0.01292, allocations: 112 kB / 249.6 MB, free: 8.973 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.01293, allocations: 23.73 kB / 249.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.095e-05/0.01297, allocations: 33.69 kB / 249.7 MB, free: 8.91 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.777e-05/0.01305, allocations: 322.8 kB / 250 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.477e-05/0.01307, allocations: 8 kB / 250 MB, free: 8.578 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.184e-05/0.01311, allocations: 58.84 kB / 250.1 MB, free: 8.496 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.129e-05/0.01318, allocations: 74.73 kB / 250.1 MB, free: 8.398 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01318, allocations: 0 / 250.1 MB, free: 8.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001001/0.01328, allocations: 89.47 kB / 250.2 MB, free: 8.305 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.0133, allocations: 4.219 kB / 250.2 MB, free: 8.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.0133, allocations: 8 kB / 250.2 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.01331, allocations: 4 kB / 250.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.01345, allocations: 38.25 kB / 250.3 MB, free: 8.258 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.01346, allocations: 4 kB / 250.3 MB, free: 8.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.681e-05/0.0135, allocations: 15.88 kB / 250.3 MB, free: 8.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.01351, allocations: 4 kB / 250.3 MB, free: 8.234 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 6.582e-05/0.01357, allocations: 121.7 kB / 250.4 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/0.01366, allocations: 65.61 kB / 250.5 MB, free: 8.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.705e-05/0.01369, allocations: 16.78 kB / 250.5 MB, free: 8.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.0137, allocations: 8 kB / 250.5 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.0137, allocations: 0 / 250.5 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.0137, allocations: 0 / 250.5 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.01386, allocations: 93.78 kB / 250.6 MB, free: 7.902 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01386, allocations: 0 / 250.6 MB, free: 7.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.01399, allocations: 39.98 kB / 250.7 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.572e-05/0.014, allocations: 23.77 kB / 250.7 MB, free: 7.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.014, allocations: 0 / 250.7 MB, free: 7.84 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.01401, allocations: 4.234 kB / 250.7 MB, free: 7.836 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.01402, allocations: 0 / 250.7 MB, free: 7.836 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01402, allocations: 4 kB / 250.7 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.01415, allocations: 243.5 kB / 250.9 MB, free: 7.574 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.01417, allocations: 8 kB / 250.9 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003098/0.01727, allocations: 4 kB / 250.9 MB, free: 7.562 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.01729, allocations: 3.984 kB / 250.9 MB, free: 7.559 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.0173, allocations: 8 kB / 250.9 MB, free: 7.551 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.365e-05/0.01733, allocations: 24.83 kB / 251 MB, free: 7.523 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01733, allocations: 0 / 251 MB, free: 7.523 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002378/0.01756, allocations: 20 kB / 251 MB, free: 7.504 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 7.589e-05/0.01764, allocations: 92.33 kB / 251.1 MB, free: 7.406 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.01774, allocations: 56.7 kB / 251.1 MB, free: 7.348 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.01774, allocations: 0 / 251.1 MB, free: 7.348 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.191e-05/0.01777, allocations: 16.84 kB / 251.1 MB, free: 7.328 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.01808, allocations: 62.77 kB / 251.2 MB, free: 7.27 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.01969, allocations: 312.3 kB / 251.5 MB, free: 6.93 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.308e-05/0.01975, allocations: 75.33 kB / 251.6 MB, free: 6.836 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.215e-05/0.01978, allocations: 4.984 kB / 251.6 MB, free: 6.832 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.583e-05/0.01985, allocations: 67.36 kB / 251.7 MB, free: 6.766 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01985, allocations: 4 kB / 251.7 MB, free: 6.762 MB / 250.7 MB Notification: Performance of Templates: time 0.00616/0.02601, allocations: 1.299 MB / 253 MB, free: 5.496 MB / 250.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 -ignoreHideResult -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","",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.602562801912427]