Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009802/0.0009801, allocations: 197.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 244.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007372/0.0007373, allocations: 100.5 kB / 296.8 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002719, allocations: 8 kB / 356.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1839, allocations: 51.29 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001623/0.1856, allocations: 1.68 MB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006015/0.1862, allocations: 0.5218 MB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.055e-05/0.1863, allocations: 6.344 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.531e-05/0.1864, allocations: 11.86 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.89e-05/0.1865, allocations: 19.84 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001887/0.1867, allocations: 47.94 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.1868, allocations: 119.5 kB / 410.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1869, allocations: 43.5 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.268e-05/0.187, allocations: 37.09 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.99e-05/0.1871, allocations: 43.78 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.1871, allocations: 4 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.546e-05/0.1871, allocations: 6.812 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/0.1871, allocations: 19.92 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.85e-05/0.1872, allocations: 77.42 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.395e-05/0.1873, allocations: 92.61 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1873, allocations: 0 / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1873, allocations: 0 / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.1873, allocations: 4 kB / 410.8 MB, free: 24.94 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004067/0.1877, allocations: 418.9 kB / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.1878, allocations: 8.031 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.1878, allocations: 16.75 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.1879, allocations: 204.1 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.188, allocations: 8.375 kB / 411.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.188, allocations: 16.38 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004027/0.1884, allocations: 252 kB / 411.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1884, allocations: 0 / 411.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1884, allocations: 8 kB / 411.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1885, allocations: 8 kB / 411.7 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/0.1887, allocations: 93.98 kB / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004204/0.1891, allocations: 0.592 MB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.1894, allocations: 159.7 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.1895, allocations: 82.77 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1896, allocations: 4 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.1896, allocations: 34.56 kB / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.1896, allocations: 0 / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004499/0.1901, allocations: 205.4 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.1901, allocations: 110.8 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.453e-05/0.1902, allocations: 130.1 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.1902, allocations: 25.7 kB / 413.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.1902, allocations: 111.9 kB / 413.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.1903, allocations: 27.64 kB / 413.2 MB, free: 22.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/0.1903, allocations: 8 kB / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.055e-05/0.1903, allocations: 323.2 kB / 413.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1904, allocations: 39.92 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.1905, allocations: 149.1 kB / 413.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.1908, allocations: 189.5 kB / 413.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1908, allocations: 15.88 kB / 413.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003006/0.1911, allocations: 205.3 kB / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.1911, allocations: 4 kB / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1911, allocations: 4 kB / 414.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.1911, allocations: 4 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.1913, allocations: 51.91 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.1913, allocations: 7.938 kB / 414.2 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.395e-05/0.1914, allocations: 28.16 kB / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1914, allocations: 8 kB / 414.2 MB, free: 21.07 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.252e-05/0.1915, allocations: 133.8 kB / 414.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1916, allocations: 93.47 kB / 414.5 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.1917, allocations: 16.72 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1917, allocations: 0 / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1917, allocations: 4 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1917, allocations: 3.984 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.1919, allocations: 213.4 kB / 414.7 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1919, allocations: 0 / 414.7 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.1921, allocations: 39.92 kB / 414.7 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1921, allocations: 0 / 414.7 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.1921, allocations: 8 kB / 414.7 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1921, allocations: 0 / 414.7 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1921, allocations: 0 / 414.7 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004081/0.1925, allocations: 396.2 kB / 415.1 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.161e-05/0.1926, allocations: 89.11 kB / 415.2 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.1926, allocations: 4 kB / 415.2 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.1927, allocations: 15.92 kB / 415.2 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.1927, allocations: 7.984 kB / 415.2 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.1928, allocations: 4 kB / 415.3 MB, free: 19.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.374e-05/0.1928, allocations: 103.3 kB / 415.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1928, allocations: 0 / 415.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002797/0.1931, allocations: 31.84 kB / 415.4 MB, free: 19.82 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 (15): * Single equations (assignments): 15 * 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.823e-05/0.1932, allocations: 103.5 kB / 415.5 MB, free: 19.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002693/0.1934, allocations: 132.6 kB / 415.6 MB, free: 19.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1934, allocations: 96 / 415.6 MB, free: 19.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.929e-05/0.1935, allocations: 43.84 kB / 415.7 MB, free: 19.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.194, allocations: 58.64 kB / 415.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005096/0.1945, allocations: 0.4955 MB / 416.2 MB, free: 18.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.1946, allocations: 0.7126 MB / 416.9 MB, free: 18.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.1946, allocations: 19.38 kB / 416.9 MB, free: 18.2 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1946, allocations: 0 / 416.9 MB, free: 18.2 MB / 298.7 MB Notification: Performance of Templates: time 0.002201/0.1968, allocations: 1.489 MB / 418.4 MB, free: 16.71 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches