Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 183.3 kB / 16.71 MB, free: 4.969 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.274/1.274, 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.0007309/0.0007309, allocations: 91.34 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003674, allocations: 11.94 kB / 354.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2187, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00107/0.2199, allocations: 0.9241 MB / 405.5 MB, free: 30.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.2223, allocations: 2.838 MB / 408.3 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.102e-05/0.2224, allocations: 0 / 408.3 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.2224, allocations: 3.984 kB / 408.3 MB, free: 27.38 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0009682/0.2234, allocations: 327.2 kB / 408.6 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.49e-05/0.2234, allocations: 4 kB / 408.6 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.476e-05/0.2234, allocations: 7.938 kB / 408.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.63e-05/0.2235, allocations: 4.891 kB / 408.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.964e-05/0.2235, allocations: 11.92 kB / 408.7 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001789/0.2253, allocations: 8 kB / 408.7 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.027e-06/0.2253, allocations: 1.25 kB / 408.7 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006623/0.226, allocations: 395.5 kB / 409.1 MB, free: 26.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.251e-05/0.226, allocations: 4 kB / 409.1 MB, free: 26.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.128e-05/0.2261, allocations: 32.11 kB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005512/0.2266, allocations: 339.5 kB / 409.4 MB, free: 26.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2266, allocations: 0 / 409.4 MB, free: 26.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2266, allocations: 0 / 409.4 MB, free: 26.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.2266, allocations: 3.938 kB / 409.4 MB, free: 26.26 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.0003364/0.227, allocations: 406.5 kB / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.227, allocations: 8.031 kB / 409.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.2271, allocations: 80.12 kB / 409.9 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.2272, allocations: 245.2 kB / 410.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.2272, allocations: 150.9 kB / 410.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.2273, allocations: 158.7 kB / 410.5 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.847e-05/0.2273, allocations: 101 kB / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2273, allocations: 75.28 kB / 410.6 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.2274, allocations: 158.6 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.2274, allocations: 150.6 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.372e-05/0.2274, allocations: 154.5 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.2276, allocations: 453.9 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.107e-05/0.2276, allocations: 169.1 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.2277, allocations: 88.06 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.2277, allocations: 75.28 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/0.2278, allocations: 51.34 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.823e-06/0.2278, allocations: 0 / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001041/0.2279, allocations: 33.7 kB / 411.9 MB, free: 23.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.013e-05/0.2279, allocations: 51.41 kB / 412 MB, free: 23.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.924e-05/0.228, allocations: 105.8 kB / 412.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.612e-06/0.228, allocations: 29.64 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.77e-05/0.228, allocations: 80.27 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.055e-05/0.2281, allocations: 7.938 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.2281, allocations: 0 / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/0.2281, allocations: 318.8 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.502e-06/0.2281, allocations: 0 / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.318e-06/0.2281, allocations: 0 / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.789e-05/0.2281, allocations: 12.86 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2282, allocations: 0 / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.471e-05/0.2282, allocations: 45.59 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.2282, allocations: 4 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.2282, allocations: 4 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2282, allocations: 0 / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-05/0.2283, allocations: 0 / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2283, allocations: 0 / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.2283, allocations: 3.938 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.2283, allocations: 0 / 412.6 MB, free: 22.88 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.45e-05/0.2284, allocations: 117.7 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-06/0.2284, allocations: 0 / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.2284, allocations: 15.14 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2284, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2284, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.2284, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.955e-05/0.2285, allocations: 149.6 kB / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2285, allocations: 0 / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-06/0.2285, allocations: 0 / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2285, allocations: 4 kB / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-06/0.2285, allocations: 0 / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2285, allocations: 0 / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2285, allocations: 0 / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.553e-05/0.2286, allocations: 61.08 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.708e-05/0.2286, allocations: 85.09 kB / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.2286, allocations: 0 / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/0.2286, allocations: 3.938 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-06/0.2287, allocations: 0 / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.2287, allocations: 0 / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.18e-05/0.2287, allocations: 95.23 kB / 413.1 MB, free: 22.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2287, allocations: 0 / 413.1 MB, free: 22.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003536/0.2291, allocations: 128 kB / 413.2 MB, free: 22.12 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.0007828/0.2298, allocations: 0.5237 MB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 4.618e-05/0.2299, allocations: 4 kB / 413.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2299, allocations: 0 / 413.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.651e-06/0.2299, allocations: 4 kB / 413.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.2301, allocations: 7.875 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001829/0.2302, allocations: 128.6 kB / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.315e-05/0.2303, allocations: 0.6692 MB / 414.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.499e-05/0.2304, allocations: 11.98 kB / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.833e-05/0.2304, allocations: 15.42 kB / 414.6 MB, free: 20.78 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2304, allocations: 0 / 414.6 MB, free: 20.78 MB / 298.7 MB Notification: Performance of Templates: time 0.00458/0.235, allocations: 2.742 MB / 417.3 MB, free: 18.04 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches