Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007746/0.0007745, allocations: 101.6 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002066/0.0002066, allocations: 4 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1833, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001563/0.1849, allocations: 1.681 MB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005684/0.1855, allocations: 497.2 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.816e-05/0.1856, allocations: 8.688 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.408e-05/0.1856, allocations: 7.922 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.814e-05/0.1857, allocations: 26.16 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.186, allocations: 39.89 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.1861, allocations: 111.6 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1862, allocations: 42.84 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.132e-05/0.1862, allocations: 40.53 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.663e-05/0.1863, allocations: 39.78 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.1863, allocations: 8.812 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.471e-05/0.1864, allocations: 4 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.1864, allocations: 19.05 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.826e-05/0.1864, allocations: 73.42 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.969e-05/0.1865, allocations: 92.73 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1865, allocations: 4 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1865, allocations: 0 / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1865, allocations: 0 / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0003991/0.1869, allocations: 409 kB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.187, allocations: 11.97 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.187, allocations: 16.75 kB / 411.1 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.1872, allocations: 211.6 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1872, allocations: 8.375 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.1872, allocations: 12.38 kB / 411.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.1876, allocations: 243.1 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1876, allocations: 0 / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1876, allocations: 0 / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1877, allocations: 5.938 kB / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.1879, allocations: 99.88 kB / 411.7 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004137/0.1883, allocations: 0.592 MB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.1885, allocations: 155.9 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.1887, allocations: 74.64 kB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.1887, allocations: 7.984 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.1887, allocations: 34.56 kB / 412.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.1887, allocations: 4 kB / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004206/0.1892, allocations: 193.3 kB / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1892, allocations: 114.9 kB / 412.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.367e-05/0.1893, allocations: 130.1 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.586e-06/0.1893, allocations: 29.64 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.415e-05/0.1893, allocations: 111.9 kB / 413.1 MB, free: 22.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.1893, allocations: 23.73 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.1894, allocations: 8 kB / 413.2 MB, free: 22.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.876e-05/0.1894, allocations: 318.8 kB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.1895, allocations: 43.97 kB / 413.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.1896, allocations: 131.1 kB / 413.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.1899, allocations: 189 kB / 413.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1899, allocations: 0 / 413.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002959/0.1902, allocations: 201.1 kB / 414 MB, free: 21.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.1902, allocations: 8 kB / 414 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1902, allocations: 8.375 kB / 414 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1902, allocations: 11.94 kB / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1904, allocations: 51.92 kB / 414.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.1904, allocations: 11.92 kB / 414.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.826e-05/0.1905, allocations: 19.78 kB / 414.1 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.1905, allocations: 12 kB / 414.2 MB, free: 21.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.15e-05/0.1906, allocations: 129.8 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.1907, allocations: 81.59 kB / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.1907, allocations: 20.66 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1907, allocations: 0 / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1907, allocations: 0 / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1907, allocations: 7.938 kB / 414.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.1909, allocations: 205.5 kB / 414.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1909, allocations: 0 / 414.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.1911, allocations: 35.97 kB / 414.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1911, allocations: 0 / 414.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.1911, allocations: 7.938 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1911, allocations: 4 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1911, allocations: 0 / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.1915, allocations: 400.4 kB / 415 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.027e-05/0.1916, allocations: 81.02 kB / 415.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.1916, allocations: 11.92 kB / 415.1 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.1917, allocations: 12 kB / 415.1 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.1917, allocations: 3.984 kB / 415.1 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.1918, allocations: 8.062 kB / 415.1 MB, free: 20.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.446e-05/0.1918, allocations: 99.97 kB / 415.2 MB, free: 20 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1918, allocations: 0 / 415.2 MB, free: 20 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.1921, allocations: 27.94 kB / 415.3 MB, free: 19.97 MB / 298.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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.326e-05/0.1922, allocations: 103.2 kB / 415.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002655/0.1924, allocations: 123.8 kB / 415.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1924, allocations: 0 / 415.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.861e-05/0.1925, allocations: 36.78 kB / 415.5 MB, free: 19.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.193, allocations: 61.11 kB / 415.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005032/0.1935, allocations: 0.4994 MB / 416.1 MB, free: 19.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.1936, allocations: 0.7126 MB / 416.8 MB, free: 18.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.1936, allocations: 15.44 kB / 416.8 MB, free: 18.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1936, allocations: 0 / 416.8 MB, free: 18.36 MB / 298.7 MB Notification: Performance of Templates: time 0.002197/0.1958, allocations: 1.465 MB / 418.3 MB, free: 16.9 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches