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.001316/0.001316, allocations: 82.17 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.001322/0.001322, allocations: 160.2 kB / 24.5 MB, free: 3.719 MB / 14.72 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 1.468/1.468, allocations: 177.1 MB / 204.7 MB, free: 8.945 MB / 190.1 MB " [Timeout remaining time 178] 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 0.002723/0.002723, allocations: 62.02 kB / 325.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.17, allocations: 53.38 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.006503/0.1765, allocations: 2.006 MB / 380.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.1787, allocations: 0.5765 MB / 381.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/0.1789, allocations: 7.938 kB / 381.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1791, allocations: 15.8 kB / 381.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.1794, allocations: 31.72 kB / 381.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.18, allocations: 75.3 kB / 381.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.1803, allocations: 131.5 kB / 381.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.1805, allocations: 34.12 kB / 381.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.1807, allocations: 51.84 kB / 381.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1809, allocations: 59.62 kB / 381.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.181, allocations: 16 kB / 381.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.065e-05/0.181, allocations: 12 kB / 381.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.995e-05/0.1811, allocations: 27.86 kB / 381.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.1812, allocations: 51.73 kB / 382 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1816, allocations: 155.2 kB / 382.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1816, allocations: 0 / 382.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1816, allocations: 0 / 382.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1817, allocations: 0 / 382.1 MB, free: 12.22 MB / 350.1 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.0009847/0.1826, allocations: 385.5 kB / 382.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.1827, allocations: 15.98 kB / 382.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.846e-05/0.1828, allocations: 24.8 kB / 382.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.1832, allocations: 156.3 kB / 382.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.1832, allocations: 12.31 kB / 382.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/0.1833, allocations: 20.36 kB / 382.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008522/0.1841, allocations: 246.9 kB / 383 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.1841, allocations: 3.984 kB / 383 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.1842, allocations: 7.984 kB / 383 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1842, allocations: 4 kB / 383 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.1846, allocations: 87.88 kB / 383.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009932/0.1856, allocations: 0.4888 MB / 383.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.1862, allocations: 147.7 kB / 383.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.1864, allocations: 70.77 kB / 383.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.1865, allocations: 11.94 kB / 383.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.1865, allocations: 34.56 kB / 383.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.324e-06/0.1865, allocations: 0 / 383.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009168/0.1874, allocations: 193.3 kB / 384 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.1876, allocations: 118.9 kB / 384.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.1878, allocations: 163 kB / 384.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.1879, allocations: 29.7 kB / 384.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.188, allocations: 112.4 kB / 384.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.188, allocations: 23.84 kB / 384.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1881, allocations: 37.7 kB / 384.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1883, allocations: 326.8 kB / 384.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.1885, allocations: 31.97 kB / 384.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.1888, allocations: 137.7 kB / 385 MB, free: 9.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005332/0.1894, allocations: 193.5 kB / 385.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1894, allocations: 0 / 385.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006734/0.1901, allocations: 205.1 kB / 385.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.1901, allocations: 4 kB / 385.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.1901, allocations: 4 kB / 385.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.1901, allocations: 8 kB / 385.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1904, allocations: 47.91 kB / 385.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.1904, allocations: 4 kB / 385.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.1906, allocations: 24.28 kB / 385.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.1906, allocations: 16 kB / 385.5 MB, free: 8.543 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.0001892/0.1908, allocations: 129.7 kB / 385.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.1911, allocations: 97.47 kB / 385.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-05/0.1912, allocations: 21.23 kB / 385.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.1912, allocations: 4 kB / 385.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.1912, allocations: 0 / 385.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1912, allocations: 240 / 385.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/0.1917, allocations: 141.3 kB / 385.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1917, allocations: 7.938 kB / 385.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.192, allocations: 35.92 kB / 385.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.192, allocations: 11.92 kB / 385.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.192, allocations: 7.984 kB / 385.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.192, allocations: 4 kB / 385.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.192, allocations: 0 / 385.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000901/0.1929, allocations: 374.1 kB / 386.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.1931, allocations: 39.8 kB / 386.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.1931, allocations: 3.984 kB / 386.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1933, allocations: 16 kB / 386.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.1934, allocations: 11.92 kB / 386.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1934, allocations: 4 kB / 386.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.1935, allocations: 115.2 kB / 386.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1935, allocations: 0 / 386.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005988/0.1941, allocations: 31.95 kB / 386.5 MB, free: 7.445 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.0001568/0.1943, allocations: 99.25 kB / 386.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005554/0.1949, allocations: 123.7 kB / 386.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1949, allocations: 0 / 386.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.195, allocations: 27.92 kB / 386.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000856/0.1959, allocations: 63.8 kB / 386.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.197, allocations: 418.3 kB / 387.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.1972, allocations: 114.8 kB / 387.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.206e-05/0.1972, allocations: 13.47 kB / 387.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.176e-05/0.1973, allocations: 20.44 kB / 387.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1973, allocations: 0 / 387.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of Templates: time 0.007539/0.2048, allocations: 1.439 MB / 388.8 MB, free: 5.145 MB / 350.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.395205416018143]