Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007552/0.0007552, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001092/0.001847, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007183/0.0007183, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009961/0.001714, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.953/0.953, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1029/1.056, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.179e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002795/0.002817, allocations: 1.293 MB / 246 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.005362, allocations: 2.221 MB / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.314e-05/0.005386, allocations: 0 / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.455e-06/0.005394, allocations: 3.938 kB / 248.2 MB, free: 10.71 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378: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.0008355/0.00623, allocations: 417 kB / 248.6 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.121e-05/0.006251, allocations: 7.938 kB / 248.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.194e-05/0.006293, allocations: 11.92 kB / 248.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.379e-05/0.006326, allocations: 0 / 248.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.686e-05/0.006373, allocations: 11.94 kB / 248.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.998e-05/0.006423, allocations: 7.984 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.006432, allocations: 0 / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000644/0.007076, allocations: 0.5461 MB / 249.2 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.00709, allocations: 0 / 249.2 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.483e-05/0.007105, allocations: 4 kB / 249.2 MB, free: 9.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.007512, allocations: 399 kB / 249.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.838e-06/0.007522, allocations: 0 / 249.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.007523, allocations: 0 / 249.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.007532, allocations: 0 / 249.6 MB, free: 9.328 MB / 250.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.0003391/0.007871, allocations: 367.6 kB / 249.9 MB, free: 8.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.637e-05/0.007898, allocations: 8.031 kB / 249.9 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.223e-05/0.00794, allocations: 76.22 kB / 250 MB, free: 8.863 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.549e-05/0.008035, allocations: 193 kB / 250.2 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.008073, allocations: 158.9 kB / 250.4 MB, free: 8.492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.008106, allocations: 150.9 kB / 250.5 MB, free: 8.344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.4e-05/0.00816, allocations: 109.5 kB / 250.6 MB, free: 8.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.008185, allocations: 79.22 kB / 250.7 MB, free: 8.152 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.008226, allocations: 150.6 kB / 250.8 MB, free: 8.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.008263, allocations: 154.6 kB / 251 MB, free: 7.852 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.004e-05/0.008303, allocations: 150.6 kB / 251.1 MB, free: 7.703 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.008475, allocations: 357.3 kB / 251.5 MB, free: 7.34 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.532e-05/0.00854, allocations: 169.1 kB / 251.7 MB, free: 7.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.107e-05/0.008561, allocations: 84.14 kB / 251.7 MB, free: 7.078 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.00858, allocations: 79.28 kB / 251.8 MB, free: 7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.999e-05/0.00868, allocations: 47.41 kB / 251.9 MB, free: 6.941 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 2.245e-06/0.008682, allocations: 0 / 251.9 MB, free: 6.941 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001108/0.008793, allocations: 41.61 kB / 251.9 MB, free: 6.895 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.008823, allocations: 55.34 kB / 252 MB, free: 6.828 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.502e-05/0.008888, allocations: 106.7 kB / 252.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.206e-06/0.008896, allocations: 25.7 kB / 252.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.197e-05/0.008918, allocations: 80.14 kB / 252.2 MB, free: 6.598 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.008937, allocations: 128 / 252.2 MB, free: 6.598 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.008965, allocations: 25.75 kB / 252.2 MB, free: 6.566 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.95e-05/0.009045, allocations: 314.8 kB / 252.5 MB, free: 6.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.668e-06/0.009049, allocations: 3.938 kB / 252.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.487e-06/0.009053, allocations: 0 / 252.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.237e-05/0.009075, allocations: 8.859 kB / 252.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.009079, allocations: 0 / 252.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.533e-05/0.009124, allocations: 37.62 kB / 252.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.009137, allocations: 8 kB / 252.6 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.009141, allocations: 0 / 252.6 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.009152, allocations: 4.094 kB / 252.6 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.774e-05/0.00917, allocations: 3.938 kB / 252.6 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.514e-06/0.009172, allocations: 0 / 252.6 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.009188, allocations: 0 / 252.6 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.009193, allocations: 0 / 252.6 MB, free: 6.176 MB / 250.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 5.391e-05/0.009247, allocations: 113.8 kB / 252.7 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-06/0.009253, allocations: 0 / 252.7 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.00928, allocations: 11.14 kB / 252.7 MB, free: 6.039 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.009281, allocations: 0 / 252.7 MB, free: 6.039 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.009284, allocations: 3.938 kB / 252.7 MB, free: 6.035 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.009286, allocations: 0 / 252.7 MB, free: 6.035 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.039e-05/0.009356, allocations: 65.91 kB / 252.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.009357, allocations: 0 / 252.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.009359, allocations: 0 / 252.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-06/0.009364, allocations: 0 / 252.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.009366, allocations: 0 / 252.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-06/0.00937, allocations: 3.984 kB / 252.8 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.009372, allocations: 7.938 kB / 252.8 MB, free: 5.941 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.009375, allocations: 7.922 kB / 252.8 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.163e-05/0.009417, allocations: 49.14 kB / 252.8 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-06/0.009427, allocations: 4 kB / 252.8 MB, free: 5.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-06/0.009434, allocations: 4.031 kB / 252.8 MB, free: 5.859 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.079e-05/0.009445, allocations: 3.984 kB / 252.8 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.009448, allocations: 4 kB / 252.8 MB, free: 5.852 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.528e-05/0.009463, allocations: 16.8 kB / 252.9 MB, free: 5.832 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009463, allocations: 0 / 252.9 MB, free: 5.832 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003555/0.009819, allocations: 147.5 kB / 253 MB, free: 5.688 MB / 250.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.001044/0.01086, allocations: 0.6097 MB / 253.6 MB, free: 5.207 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.475e-05/0.01092, allocations: 16.8 kB / 253.6 MB, free: 5.188 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.01092, allocations: 8 kB / 253.6 MB, free: 5.18 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.053e-06/0.01093, allocations: 4.859 kB / 253.6 MB, free: 5.172 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.391e-05/0.011, allocations: 11.22 kB / 253.6 MB, free: 5.164 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.01168, allocations: 116.9 kB / 253.8 MB, free: 5.023 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.941e-05/0.01171, allocations: 55.34 kB / 253.8 MB, free: 4.949 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.957e-05/0.01174, allocations: 15.92 kB / 253.8 MB, free: 4.934 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.198e-05/0.01177, allocations: 51.38 kB / 253.9 MB, free: 4.883 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01177, allocations: 0 / 253.9 MB, free: 4.883 MB / 250.7 MB Notification: Performance of Templates: time 0.006109/0.01788, allocations: 3.878 MB / 257.8 MB, free: 1.008 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7041352884843946]