Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009215/0.0009217, allocations: 182.9 kB / 16.71 MB, free: 4.836 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 225.7 MB / 243.2 MB, free: 10.22 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000794/0.0007941, allocations: 96.36 kB / 294.4 MB, free: 9.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002527/0.0002529, allocations: 8 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1867, allocations: 50.41 MB / 404.6 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001753/0.1885, allocations: 1.679 MB / 406.2 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006149/0.1891, allocations: 495.6 kB / 406.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.85e-05/0.1892, allocations: 4 kB / 406.7 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.926e-05/0.1893, allocations: 13.86 kB / 406.7 MB, free: 29.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.1895, allocations: 23.78 kB / 406.8 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002084/0.1897, allocations: 47.95 kB / 406.8 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.1898, allocations: 119.6 kB / 406.9 MB, free: 29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.1899, allocations: 49.77 kB / 407 MB, free: 28.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.982e-05/0.19, allocations: 43.73 kB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.415e-05/0.1901, allocations: 47.77 kB / 407.1 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.1901, allocations: 4 kB / 407.1 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.862e-05/0.1901, allocations: 4 kB / 407.1 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.743e-05/0.1902, allocations: 19.92 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.1902, allocations: 79.06 kB / 407.2 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.1903, allocations: 121 kB / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1903, allocations: 0 / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1904, allocations: 0 / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.1904, allocations: 0 / 407.3 MB, free: 28.64 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.0004229/0.1908, allocations: 406.8 kB / 407.7 MB, free: 28.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1908, allocations: 16.02 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.301e-05/0.1909, allocations: 12.75 kB / 407.7 MB, free: 28.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.191, allocations: 208.1 kB / 407.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.191, allocations: 12.36 kB / 407.9 MB, free: 27.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.1911, allocations: 16.38 kB / 408 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.1915, allocations: 254.8 kB / 408.2 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1915, allocations: 0 / 408.2 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1915, allocations: 0 / 408.2 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1915, allocations: 4 kB / 408.2 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.1917, allocations: 95.88 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004303/0.1922, allocations: 0.5959 MB / 408.9 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.1925, allocations: 159.8 kB / 409 MB, free: 26.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1926, allocations: 86.62 kB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.1926, allocations: 0 / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.1927, allocations: 42.5 kB / 409.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 8.92e-07/0.1927, allocations: 0 / 409.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004257/0.1931, allocations: 197.6 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.1931, allocations: 118.8 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.034e-05/0.1932, allocations: 130 kB / 409.6 MB, free: 26.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.1932, allocations: 33.7 kB / 409.6 MB, free: 26.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.1933, allocations: 116 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.1933, allocations: 27.64 kB / 409.8 MB, free: 25.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.1933, allocations: 4 kB / 409.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.596e-05/0.1934, allocations: 322.8 kB / 410.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.1935, allocations: 39.97 kB / 410.1 MB, free: 25.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.1936, allocations: 143.3 kB / 410.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1938, allocations: 201.5 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1938, allocations: 0 / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003016/0.1941, allocations: 209.1 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1942, allocations: 8 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1942, allocations: 4 kB / 410.7 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1942, allocations: 4 kB / 410.7 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.1943, allocations: 44.45 kB / 410.7 MB, free: 24.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.1943, allocations: 11.92 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.273e-05/0.1944, allocations: 23.84 kB / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.1945, allocations: 8 kB / 410.8 MB, free: 24.76 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.094e-05/0.1945, allocations: 130.3 kB / 410.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.1947, allocations: 93.45 kB / 411 MB, free: 24.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.617e-05/0.1948, allocations: 16.72 kB / 411 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1948, allocations: 12 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1948, allocations: 0 / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1948, allocations: 0 / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.195, allocations: 213.4 kB / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.195, allocations: 0 / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.1952, allocations: 35.97 kB / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1952, allocations: 4 kB / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1952, allocations: 4 kB / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1952, allocations: 0 / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1952, allocations: 8 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.1956, allocations: 399.3 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.1957, allocations: 89.02 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.1957, allocations: 96 / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.1958, allocations: 19.92 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.1959, allocations: 4 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1959, allocations: 3.938 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.607e-05/0.1959, allocations: 107.3 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1959, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.1962, allocations: 35.84 kB / 411.9 MB, free: 23.5 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.86e-05/0.1963, allocations: 107.4 kB / 412 MB, free: 23.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.1966, allocations: 132.2 kB / 412.2 MB, free: 23.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1966, allocations: 0 / 412.2 MB, free: 23.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.398e-05/0.1967, allocations: 35.97 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.1971, allocations: 64.45 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005224/0.1976, allocations: 481.7 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.1977, allocations: 0.7126 MB / 413.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.868e-05/0.1978, allocations: 17.08 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.1978, allocations: 11.44 kB / 413.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1978, allocations: 0 / 413.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of Templates: time 0.003083/0.2009, allocations: 1.074 MB / 414.6 MB, free: 20.83 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches