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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 110.8 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 198.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009824/0.0009824, allocations: 43.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3287, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002051/0.3308, allocations: 1.192 MB / 401.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.3336, allocations: 1.96 MB / 403.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.225e-05/0.3337, allocations: 4 kB / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.3337, allocations: 4 kB / 403.9 MB, free: 5.703 MB / 318.1 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.001076/0.3348, allocations: 434.6 kB / 404.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.091e-05/0.3348, allocations: 0 / 404.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.668e-05/0.3348, allocations: 11.94 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.037e-05/0.3349, allocations: 4 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.083e-05/0.3349, allocations: 7.922 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.3352, allocations: 11.98 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.3352, allocations: 0 / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007247/0.3359, allocations: 475.4 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.3359, allocations: 7.969 kB / 404.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.336, allocations: 7.938 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006964/0.3367, allocations: 331.5 kB / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3367, allocations: 0 / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3367, allocations: 0 / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3367, allocations: 0 / 405.1 MB, free: 4.438 MB / 318.1 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.0006521/0.3374, allocations: 403.5 kB / 405.5 MB, free: 3.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.3374, allocations: 12.03 kB / 405.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.3375, allocations: 76.22 kB / 405.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.3377, allocations: 243.6 kB / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-05/0.3378, allocations: 170.8 kB / 406 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.312e-05/0.3379, allocations: 154.7 kB / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.034e-05/0.338, allocations: 101 kB / 406.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.669e-05/0.338, allocations: 75.28 kB / 406.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.3381, allocations: 150.6 kB / 406.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.3382, allocations: 154.6 kB / 406.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.724e-05/0.3383, allocations: 150.6 kB / 406.8 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003541/0.3386, allocations: 453.9 kB / 407.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.901e-05/0.3387, allocations: 165.1 kB / 407.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.005e-05/0.3388, allocations: 88.08 kB / 407.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.3388, allocations: 75.28 kB / 407.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.339, allocations: 55.41 kB / 407.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 3.176e-06/0.339, allocations: 3.938 kB / 407.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.3392, allocations: 29.7 kB / 407.6 MB, free: 1.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.3393, allocations: 51.41 kB / 407.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.696e-05/0.3394, allocations: 110 kB / 407.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3394, allocations: 25.7 kB / 407.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.3395, allocations: 88.06 kB / 407.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.3395, allocations: 0 / 407.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.3395, allocations: 17.72 kB / 407.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3396, allocations: 310.8 kB / 408.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.3397, allocations: 3.984 kB / 408.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.3397, allocations: 0 / 408.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.886e-05/0.3397, allocations: 16.86 kB / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3397, allocations: 0 / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.534e-05/0.3398, allocations: 41.55 kB / 408.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3398, allocations: 8 kB / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3398, allocations: 0 / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3398, allocations: 0 / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.622e-05/0.3399, allocations: 0 / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3399, allocations: 0 / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.3399, allocations: 0 / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.3399, allocations: 4.031 kB / 408.3 MB, free: 1.031 MB / 318.1 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 9.858e-05/0.34, allocations: 117.8 kB / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.032e-05/0.34, allocations: 0 / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.3401, allocations: 3.125 kB / 408.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.3401, allocations: 0 / 408.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3401, allocations: 4 kB / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3401, allocations: 0 / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.3403, allocations: 157.5 kB / 408.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3403, allocations: 0 / 408.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.756e-06/0.3403, allocations: 8 kB / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3403, allocations: 3.938 kB / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.3403, allocations: 0 / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3403, allocations: 0 / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3403, allocations: 192 / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.232e-05/0.3404, allocations: 61.06 kB / 408.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-05/0.3405, allocations: 85.09 kB / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.3405, allocations: 0 / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.3406, allocations: 4.031 kB / 408.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.3406, allocations: 0 / 408.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.3406, allocations: 0 / 408.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.532e-05/0.3406, allocations: 83.27 kB / 408.8 MB, free: 428 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3406, allocations: 7.938 kB / 408.8 MB, free: 420 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000467/0.3411, allocations: 124 kB / 408.9 MB, free: 296 kB / 318.1 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.001062/0.3422, allocations: 497.3 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.731e-05/0.3423, allocations: 4 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3423, allocations: 0 / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.855e-06/0.3423, allocations: 7.938 kB / 409.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.3424, allocations: 12.06 kB / 409.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002673/0.3427, allocations: 106.7 kB / 409.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.343, allocations: 0.6727 MB / 410.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.081e-05/0.343, allocations: 15.92 kB / 410.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.3431, allocations: 15.42 kB / 410.2 MB, free: 15 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3431, allocations: 0 / 410.2 MB, free: 15 MB / 334.1 MB Notification: Performance of Templates: time 0.005991/0.3491, allocations: 2.762 MB / 413 MB, free: 12.23 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches