Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0009687/0.0009687, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001436/0.002404, 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.00113/0.00113, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001583/0.002713, 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.9914/0.9914, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0841/1.076, allocations: 53.87 MB / 243.9 MB, free: 14.83 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.042e-05/1.15e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002062/0.002074, allocations: 2.146 MB / 247.3 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006231/0.002697, allocations: 0.6033 MB / 247.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.276e-05/0.00278, allocations: 7.938 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.805e-05/0.002838, allocations: 19.8 kB / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.954e-05/0.002927, allocations: 35.72 kB / 248 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.003102, allocations: 71.67 kB / 248.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.00323, allocations: 127.5 kB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.003331, allocations: 50.67 kB / 248.2 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.889e-05/0.00343, allocations: 87.8 kB / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.47e-05/0.003495, allocations: 39.88 kB / 248.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.003517, allocations: 8 kB / 248.4 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.58e-05/0.003533, allocations: 15.94 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.003576, allocations: 27.94 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.003609, allocations: 39.88 kB / 248.4 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.003741, allocations: 95.53 kB / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.003748, allocations: 0 / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003749, allocations: 0 / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.003756, allocations: 0 / 248.5 MB, free: 10.18 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004144/0.00417, allocations: 371.9 kB / 248.9 MB, free: 9.797 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.004199, allocations: 12.62 kB / 248.9 MB, free: 9.785 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.004239, allocations: 20.92 kB / 248.9 MB, free: 9.766 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.004397, allocations: 161.5 kB / 249.1 MB, free: 9.582 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-06/0.004406, allocations: 8.375 kB / 249.1 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.004435, allocations: 24.27 kB / 249.1 MB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.004649, allocations: 207.8 kB / 249.3 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.004658, allocations: 192 / 249.3 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.004667, allocations: 8.359 kB / 249.3 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.004672, allocations: 11.94 kB / 249.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.551e-05/0.004718, allocations: 31.92 kB / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003204/0.005038, allocations: 461.9 kB / 249.8 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.00518, allocations: 103.7 kB / 249.9 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.997e-05/0.00522, allocations: 46.66 kB / 250 MB, free: 8.594 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.005237, allocations: 4.188 kB / 250 MB, free: 8.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.005253, allocations: 34.5 kB / 250 MB, free: 8.547 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.005254, allocations: 0 / 250 MB, free: 8.547 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001439/0.005398, allocations: 101.5 kB / 250.1 MB, free: 8.441 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.005441, allocations: 114.8 kB / 250.2 MB, free: 8.305 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.861e-05/0.00551, allocations: 151.2 kB / 250.4 MB, free: 8.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.005521, allocations: 29.7 kB / 250.4 MB, free: 8.109 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.005559, allocations: 108.5 kB / 250.5 MB, free: 8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.005576, allocations: 31.77 kB / 250.5 MB, free: 7.969 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.005606, allocations: 25.7 kB / 250.6 MB, free: 7.938 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.13e-05/0.005667, allocations: 322.8 kB / 250.9 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.00568, allocations: 7.984 kB / 250.9 MB, free: 7.605 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.233e-05/0.005713, allocations: 66.78 kB / 250.9 MB, free: 7.516 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.574e-05/0.005768, allocations: 86.83 kB / 251 MB, free: 7.406 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.00577, allocations: 0 / 251 MB, free: 7.406 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.682e-05/0.005847, allocations: 93.83 kB / 251.1 MB, free: 7.309 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.005858, allocations: 8.031 kB / 251.1 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.005863, allocations: 7.938 kB / 251.1 MB, free: 7.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.005872, allocations: 0 / 251.1 MB, free: 7.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.005974, allocations: 31.92 kB / 251.2 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.005978, allocations: 4 kB / 251.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.396e-05/0.006012, allocations: 15.89 kB / 251.2 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.006017, allocations: 4 kB / 251.2 MB, free: 7.238 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 5.797e-05/0.006075, allocations: 124.6 kB / 251.3 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-05/0.006138, allocations: 65.61 kB / 251.4 MB, free: 7.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.006172, allocations: 24.78 kB / 251.4 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.006174, allocations: 0 / 251.4 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.006176, allocations: 4 kB / 251.4 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.006178, allocations: 0 / 251.4 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.006291, allocations: 97.73 kB / 251.5 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.006293, allocations: 0 / 251.5 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.736e-05/0.00638, allocations: 43.91 kB / 251.5 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.105e-05/0.006411, allocations: 19.89 kB / 251.6 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.006414, allocations: 4 kB / 251.6 MB, free: 6.828 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.006424, allocations: 3.984 kB / 251.6 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.006425, allocations: 4 kB / 251.6 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.006426, allocations: 4 kB / 251.6 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.006539, allocations: 239.5 kB / 251.8 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.006551, allocations: 4 kB / 251.8 MB, free: 6.559 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.879e-05/0.00661, allocations: 8.062 kB / 251.8 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.006635, allocations: 11.98 kB / 251.8 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-06/0.006639, allocations: 0 / 251.8 MB, free: 6.539 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.478e-05/0.006664, allocations: 32.83 kB / 251.9 MB, free: 6.504 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006664, allocations: 0 / 251.9 MB, free: 6.504 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001558/0.00682, allocations: 27.94 kB / 251.9 MB, free: 6.477 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 5.596e-05/0.006875, allocations: 92.39 kB / 252 MB, free: 6.379 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.505e-05/0.006951, allocations: 52.7 kB / 252 MB, free: 6.324 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.006956, allocations: 4 kB / 252 MB, free: 6.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.05e-05/0.007036, allocations: 24.78 kB / 252.1 MB, free: 6.293 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.007337, allocations: 260.3 kB / 252.3 MB, free: 6 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.008536, allocations: 330.8 kB / 252.6 MB, free: 5.641 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.389e-05/0.00859, allocations: 79.33 kB / 252.7 MB, free: 5.543 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.973e-05/0.00863, allocations: 8.969 kB / 252.7 MB, free: 5.531 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.389e-05/0.008703, allocations: 75.36 kB / 252.8 MB, free: 5.457 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.008704, allocations: 0 / 252.8 MB, free: 5.457 MB / 250.7 MB Notification: Performance of Templates: time 0.004262/0.01297, allocations: 1.438 MB / 254.2 MB, free: 4.082 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.4739838000386953]