Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001043/0.001043, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001693/0.002735, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007151/0.0007151, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009312/0.001646, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9739/0.9739, allocations: 177.5 MB / 190 MB, free: 4.773 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08905/1.063, allocations: 53.88 MB / 243.9 MB, free: 14.82 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.136e-05/2.276e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003584/0.003607, allocations: 2.118 MB / 247.3 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.00464, allocations: 0.5684 MB / 247.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.004751, allocations: 3.938 kB / 247.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.039e-05/0.004842, allocations: 15.86 kB / 247.9 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.004961, allocations: 23.73 kB / 247.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.005234, allocations: 67.72 kB / 248 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000193/0.005427, allocations: 119.5 kB / 248.1 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.00557, allocations: 42.23 kB / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.005721, allocations: 91.8 kB / 248.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.986e-05/0.005821, allocations: 47.81 kB / 248.3 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.005863, allocations: 8 kB / 248.3 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.005885, allocations: 12 kB / 248.3 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.44e-05/0.00592, allocations: 19.94 kB / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.506e-05/0.005965, allocations: 27.94 kB / 248.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.006161, allocations: 87.56 kB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.006172, allocations: 0 / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.006173, allocations: 0 / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.006184, allocations: 0 / 248.4 MB, free: 10.3 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.0005244/0.006708, allocations: 356.1 kB / 248.8 MB, free: 9.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.006746, allocations: 8.625 kB / 248.8 MB, free: 9.922 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.0068, allocations: 20.92 kB / 248.8 MB, free: 9.902 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.007005, allocations: 145.4 kB / 248.9 MB, free: 9.738 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.00702, allocations: 8.375 kB / 248.9 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.007056, allocations: 16.38 kB / 249 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.007398, allocations: 207.8 kB / 249.2 MB, free: 9.484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.00742, allocations: 8.172 kB / 249.2 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.007431, allocations: 384 / 249.2 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.00744, allocations: 7.938 kB / 249.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.052e-05/0.00752, allocations: 35.91 kB / 249.2 MB, free: 9.434 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.00801, allocations: 453.9 kB / 249.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.008236, allocations: 103.9 kB / 249.8 MB, free: 8.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.008292, allocations: 46.59 kB / 249.8 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.008315, allocations: 4 kB / 249.8 MB, free: 8.762 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.008344, allocations: 42.55 kB / 249.9 MB, free: 8.711 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.104e-06/0.008346, allocations: 0 / 249.9 MB, free: 8.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002353/0.008581, allocations: 93.53 kB / 249.9 MB, free: 8.613 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.008642, allocations: 110.8 kB / 250.1 MB, free: 8.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.008726, allocations: 126.7 kB / 250.2 MB, free: 8.344 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.008742, allocations: 33.7 kB / 250.2 MB, free: 8.305 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.225e-05/0.008795, allocations: 108 kB / 250.3 MB, free: 8.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.00882, allocations: 27.78 kB / 250.3 MB, free: 8.168 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.008862, allocations: 29.83 kB / 250.4 MB, free: 8.133 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.008952, allocations: 322.8 kB / 250.7 MB, free: 7.809 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.059e-05/0.008973, allocations: 11.94 kB / 250.7 MB, free: 7.797 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.376e-05/0.009027, allocations: 70.83 kB / 250.8 MB, free: 7.703 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.449e-05/0.009111, allocations: 78.72 kB / 250.8 MB, free: 7.602 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.009114, allocations: 4 kB / 250.8 MB, free: 7.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001263/0.00924, allocations: 81.53 kB / 250.9 MB, free: 7.512 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.009257, allocations: 11.12 kB / 250.9 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.009262, allocations: 3.938 kB / 250.9 MB, free: 7.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.009277, allocations: 4 kB / 250.9 MB, free: 7.496 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.009441, allocations: 27.98 kB / 251 MB, free: 7.469 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.009446, allocations: 3.938 kB / 251 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.049e-05/0.009506, allocations: 28.09 kB / 251 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.009515, allocations: 4 kB / 251 MB, free: 7.434 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 7.761e-05/0.009592, allocations: 121.7 kB / 251.1 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.009694, allocations: 61.61 kB / 251.2 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.201e-05/0.009746, allocations: 16.78 kB / 251.2 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.009749, allocations: 240 / 251.2 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.009753, allocations: 4 kB / 251.2 MB, free: 7.219 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.009758, allocations: 3.984 kB / 251.2 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.009932, allocations: 93.8 kB / 251.3 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.009935, allocations: 0 / 251.3 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.01008, allocations: 42.92 kB / 251.3 MB, free: 7.066 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.92e-05/0.0101, allocations: 19.84 kB / 251.4 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.01011, allocations: 0 / 251.4 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.01012, allocations: 4 kB / 251.4 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01012, allocations: 4 kB / 251.4 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01013, allocations: 0 / 251.4 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.0103, allocations: 244 kB / 251.6 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.01031, allocations: 0 / 251.6 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.01042, allocations: 8 kB / 251.6 MB, free: 6.773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.01045, allocations: 7.984 kB / 251.6 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.01045, allocations: 4.031 kB / 251.6 MB, free: 6.762 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.77e-05/0.01048, allocations: 24.84 kB / 251.7 MB, free: 6.734 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01048, allocations: 0 / 251.7 MB, free: 6.734 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.01072, allocations: 24 kB / 251.7 MB, free: 6.711 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 9.858e-05/0.01082, allocations: 92.27 kB / 251.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.01093, allocations: 52.94 kB / 251.8 MB, free: 6.559 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.01093, allocations: 4.656 kB / 251.8 MB, free: 6.555 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.111e-05/0.01097, allocations: 20.92 kB / 251.8 MB, free: 6.531 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.01139, allocations: 203.3 kB / 252 MB, free: 6.301 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.01312, allocations: 299.9 kB / 252.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.066e-05/0.01318, allocations: 83.42 kB / 252.4 MB, free: 5.871 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.024e-05/0.01322, allocations: 4.984 kB / 252.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.01332, allocations: 63.36 kB / 252.5 MB, free: 5.805 MB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01332, allocations: 0 / 252.5 MB, free: 5.805 MB / 250.7 MB Notification: Performance of Templates: time 0.003697/0.01702, allocations: 1.254 MB / 253.7 MB, free: 4.582 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4650641195476055]