Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.001611, allocations: 201 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 229.5 MB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000739/0.000739, allocations: 97.05 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002023, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1867, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.0009199/0.1877, allocations: 0.9254 MB / 413 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1902, allocations: 3.552 MB / 416.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.114e-05/0.1903, allocations: 0.75 kB / 416.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.1903, allocations: 0 / 416.5 MB, free: 21.05 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function ‘Modelica.Utilities.Examples.readRealParameter‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.0009023/0.1912, allocations: 347.2 kB / 416.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.913e-05/0.1912, allocations: 8.844 kB / 416.9 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.469e-05/0.1913, allocations: 11.92 kB / 416.9 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1913, allocations: 1.25 kB / 416.9 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.619e-05/0.1913, allocations: 4 kB / 416.9 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.1916, allocations: 11.92 kB / 416.9 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.586e-06/0.1916, allocations: 3.438 kB / 416.9 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005137/0.1921, allocations: 431.6 kB / 417.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.1921, allocations: 3.938 kB / 417.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.1922, allocations: 29.7 kB / 417.4 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.1926, allocations: 375.4 kB / 417.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1926, allocations: 0 / 417.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1926, allocations: 0 / 417.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.1926, allocations: 0 / 417.7 MB, free: 19.85 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002971/0.1929, allocations: 409.9 kB / 418.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.1929, allocations: 8.031 kB / 418.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.193, allocations: 84.12 kB / 418.2 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.1931, allocations: 251.6 kB / 418.5 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.1931, allocations: 150.9 kB / 418.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.1932, allocations: 158.6 kB / 418.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.906e-05/0.1932, allocations: 108.9 kB / 418.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1932, allocations: 75.28 kB / 418.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.1932, allocations: 154.6 kB / 419.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.1933, allocations: 150.6 kB / 419.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.172e-05/0.1933, allocations: 150.6 kB / 419.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.1935, allocations: 449.9 kB / 419.8 MB, free: 17.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.816e-05/0.1935, allocations: 177.1 kB / 420 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.387e-05/0.1935, allocations: 84.08 kB / 420.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.1935, allocations: 75.28 kB / 420.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.571e-05/0.1936, allocations: 51.45 kB / 420.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.044e-06/0.1937, allocations: 0 / 420.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001039/0.1938, allocations: 41.64 kB / 420.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.1938, allocations: 51.41 kB / 420.3 MB, free: 17.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.816e-05/0.1939, allocations: 105.8 kB / 420.4 MB, free: 16.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.099e-06/0.1939, allocations: 25.7 kB / 420.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.721e-05/0.1939, allocations: 84.14 kB / 420.5 MB, free: 16.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/0.1939, allocations: 0 / 420.5 MB, free: 16.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-06/0.1939, allocations: 4 kB / 420.5 MB, free: 16.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.629e-05/0.194, allocations: 310.8 kB / 420.8 MB, free: 16.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-06/0.194, allocations: 4.125 kB / 420.8 MB, free: 16.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.466e-06/0.194, allocations: 0 / 420.8 MB, free: 16.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.749e-05/0.194, allocations: 12.8 kB / 420.8 MB, free: 16.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.194, allocations: 0 / 420.8 MB, free: 16.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.81e-05/0.194, allocations: 41.53 kB / 420.9 MB, free: 16.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.1941, allocations: 8 kB / 420.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.1941, allocations: 0 / 420.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1941, allocations: 0 / 420.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.574e-05/0.1941, allocations: 0 / 420.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.1941, allocations: 4.094 kB / 420.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.1941, allocations: 4 kB / 420.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.1941, allocations: 0 / 420.9 MB, free: 16.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 4.318e-05/0.1942, allocations: 117.7 kB / 421 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-06/0.1942, allocations: 3.984 kB / 421 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.139e-05/0.1942, allocations: 7.125 kB / 421 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1942, allocations: 0 / 421 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1942, allocations: 0 / 421 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1943, allocations: 0 / 421 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.55e-05/0.1943, allocations: 157.6 kB / 421.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1943, allocations: 4 kB / 421.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-06/0.1943, allocations: 0 / 421.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1943, allocations: 0 / 421.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-06/0.1944, allocations: 3.938 kB / 421.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1944, allocations: 3.938 kB / 421.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1944, allocations: 0 / 421.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.393e-05/0.1944, allocations: 61.06 kB / 421.2 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.1944, allocations: 85.14 kB / 421.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.1945, allocations: 4 kB / 421.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.1945, allocations: 0 / 421.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-06/0.1945, allocations: 0 / 421.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.1945, allocations: 7.938 kB / 421.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.217e-05/0.1945, allocations: 83.27 kB / 421.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1945, allocations: 0 / 421.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003488/0.1949, allocations: 144 kB / 421.5 MB, free: 15.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0008164/0.1957, allocations: 0.5345 MB / 422.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.845e-05/0.1958, allocations: 7.938 kB / 422.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1958, allocations: 4.062 kB / 422.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.598e-06/0.1958, allocations: 0 / 422.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1959, allocations: 7.938 kB / 422.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001948/0.1961, allocations: 116.5 kB / 422.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.345e-05/0.1962, allocations: 0.677 MB / 422.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.507e-05/0.1963, allocations: 11.92 kB / 422.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.589e-05/0.1963, allocations: 15.5 kB / 422.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1963, allocations: 0 / 422.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of Templates: time 0.004938/0.2012, allocations: 3.091 MB / 426 MB, free: 11.23 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches