Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 186.5 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009842/0.0009841, allocations: 98.64 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008216/0.0008216, allocations: 35.94 kB / 350 MB, free: 104 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2501, allocations: 49.45 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001933/0.2521, allocations: 1.245 MB / 400.7 MB, free: 32.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.2545, allocations: 1.981 MB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.627e-05/0.2545, allocations: 3.938 kB / 402.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.962e-05/0.2546, allocations: 3.984 kB / 402.7 MB, free: 30.15 MB / 298.7 MB [/home/hudson/saved_omc/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.0008018/0.2554, allocations: 332.3 kB / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.793e-05/0.2554, allocations: 0 / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.781e-05/0.2554, allocations: 7.938 kB / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.703e-05/0.2555, allocations: 7.984 kB / 403 MB, free: 29.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.802e-05/0.2555, allocations: 11.88 kB / 403 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005115/0.256, allocations: 7.984 kB / 403.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.256, allocations: 4 kB / 403.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.2565, allocations: 423.5 kB / 403.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.2566, allocations: 3.984 kB / 403.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.344e-05/0.2566, allocations: 7.938 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003606/0.257, allocations: 331.5 kB / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.257, allocations: 0 / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.257, allocations: 0 / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.257, allocations: 0 / 403.8 MB, free: 29.04 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.0003368/0.2573, allocations: 419.4 kB / 404.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2574, allocations: 8.031 kB / 404.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.478e-05/0.2574, allocations: 80.22 kB / 404.3 MB, free: 28.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.2576, allocations: 245.2 kB / 404.5 MB, free: 28.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.2576, allocations: 154.9 kB / 404.7 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.2576, allocations: 154.7 kB / 404.8 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.042e-05/0.2577, allocations: 105 kB / 404.9 MB, free: 27.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.2577, allocations: 75.28 kB / 405 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.2577, allocations: 154.6 kB / 405.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.2577, allocations: 150.6 kB / 405.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.387e-05/0.2578, allocations: 154.5 kB / 405.5 MB, free: 27.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.2579, allocations: 453.9 kB / 405.9 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.775e-05/0.258, allocations: 169.1 kB / 406.1 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.848e-05/0.258, allocations: 84.08 kB / 406.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.258, allocations: 75.28 kB / 406.2 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001132/0.2581, allocations: 59.33 kB / 406.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.833e-06/0.2582, allocations: 3.938 kB / 406.3 MB, free: 26.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001147/0.2583, allocations: 29.7 kB / 406.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.2583, allocations: 55.41 kB / 406.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.814e-05/0.2584, allocations: 105.8 kB / 406.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-06/0.2584, allocations: 25.7 kB / 406.5 MB, free: 26.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.298e-05/0.2584, allocations: 80.14 kB / 406.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.2584, allocations: 7.906 kB / 406.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.2585, allocations: 17.84 kB / 406.6 MB, free: 26.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.58e-05/0.2585, allocations: 310.8 kB / 406.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-06/0.2585, allocations: 7.922 kB / 406.9 MB, free: 25.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.2585, allocations: 4 kB / 406.9 MB, free: 25.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.688e-05/0.2585, allocations: 4.859 kB / 406.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2586, allocations: 0 / 406.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.918e-05/0.2586, allocations: 41.64 kB / 407 MB, free: 25.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.2586, allocations: 4 kB / 407 MB, free: 25.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2586, allocations: 4.094 kB / 407 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2586, allocations: 3.938 kB / 407 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.902e-05/0.2587, allocations: 0 / 407 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2587, allocations: 0 / 407 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.464e-05/0.2587, allocations: 4 kB / 407 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.2587, allocations: 3.938 kB / 407 MB, free: 25.61 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.651e-05/0.2588, allocations: 117.7 kB / 407.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-06/0.2588, allocations: 0 / 407.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.937e-05/0.2588, allocations: 7.125 kB / 407.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2588, allocations: 4 kB / 407.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2588, allocations: 0 / 407.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.2588, allocations: 0 / 407.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.565e-05/0.2589, allocations: 157.6 kB / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.2589, allocations: 0 / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-06/0.2589, allocations: 0 / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.2589, allocations: 0 / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-06/0.2589, allocations: 0 / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.2589, allocations: 0 / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2589, allocations: 4 kB / 407.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.2591, allocations: 0.6123 MB / 407.9 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.525e-05/0.2591, allocations: 77.11 kB / 408 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.2592, allocations: 7.938 kB / 408 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.166e-05/0.2592, allocations: 0 / 408 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.039e-05/0.2592, allocations: 0 / 408 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.2592, allocations: 3.938 kB / 408 MB, free: 24.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.392e-05/0.2592, allocations: 91.3 kB / 408.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2592, allocations: 0 / 408.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004338/0.2597, allocations: 132 kB / 408.2 MB, free: 24.27 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.0008144/0.2605, allocations: 484.1 kB / 408.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.885e-05/0.2606, allocations: 11.92 kB / 408.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2606, allocations: 0 / 408.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.13e-06/0.2606, allocations: 0 / 408.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.2607, allocations: 4 kB / 408.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002466/0.261, allocations: 211.1 kB / 408.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.615e-05/0.2611, allocations: 0.6731 MB / 409.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.611e-05/0.2611, allocations: 11.92 kB / 409.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.354e-05/0.2611, allocations: 15.42 kB / 409.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2611, allocations: 0 / 409.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of Templates: time 0.004577/0.2657, allocations: 2.758 MB / 412.3 MB, free: 20.12 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@2/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