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.001051/0.001051, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001066/0.001066, allocations: 162.7 kB / 25.61 MB, free: 8.906 MB / 18.57 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.9825/0.9825, allocations: 177.1 MB / 206.1 MB, free: 4.07 MB / 186.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.233e-06/1.233e-06, allocations: 0 / 274.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.184e-05/1.308e-05, allocations: 2.312 kB / 274.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001501/0.001514, allocations: 1.226 MB / 275.4 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.003614, allocations: 2.158 MB / 277.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.288e-05/0.003637, allocations: 0 / 277.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.003652, allocations: 0 / 277.5 MB, free: 0.9961 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.000958/0.00461, allocations: 482.9 kB / 278 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.929e-05/0.004629, allocations: 4 kB / 278 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 3.639e-05/0.004666, allocations: 16.98 kB / 278 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.673e-05/0.004692, allocations: 0 / 278 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.542e-05/0.004718, allocations: 4 kB / 278 MB, free: 0.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.152e-05/0.004759, allocations: 14.84 kB / 278 MB, free: 500 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.206e-06/0.004768, allocations: 0 / 278 MB, free: 500 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005405/0.005308, allocations: 499.2 kB / 278.5 MB, free: 0 / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.458e-06/0.005317, allocations: 0 / 278.5 MB, free: 0 / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.005341, allocations: 4.047 kB / 278.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.005772, allocations: 466.8 kB / 279 MB, free: 15.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.005774, allocations: 0 / 279 MB, free: 15.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.005774, allocations: 0 / 279 MB, free: 15.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.005778, allocations: 1.344 kB / 279 MB, free: 15.54 MB / 266.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.0002828/0.00606, allocations: 447.4 kB / 279.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.838e-05/0.006089, allocations: 16.02 kB / 279.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.006137, allocations: 129.4 kB / 279.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.038e-05/0.006227, allocations: 227.8 kB / 279.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.006279, allocations: 238.8 kB / 280 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.006327, allocations: 243.4 kB / 280.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.134e-05/0.006378, allocations: 149.4 kB / 280.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.006406, allocations: 127.1 kB / 280.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.006458, allocations: 238.4 kB / 280.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.941e-05/0.006507, allocations: 246.3 kB / 281 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.144e-05/0.006558, allocations: 246.4 kB / 281.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.006737, allocations: 0.5491 MB / 281.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.519e-05/0.006812, allocations: 265.4 kB / 282.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.006843, allocations: 126.9 kB / 282.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.006868, allocations: 119.2 kB / 282.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.762e-05/0.006925, allocations: 53.06 kB / 282.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.492e-06/0.006927, allocations: 7.938 kB / 282.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 7.856e-05/0.007005, allocations: 41.58 kB / 282.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.007029, allocations: 51.41 kB / 282.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.98e-05/0.007088, allocations: 169.9 kB / 282.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-06/0.007096, allocations: 25.7 kB / 282.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.971e-05/0.007126, allocations: 126.9 kB / 282.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.318e-06/0.007135, allocations: 0 / 282.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.807e-05/0.007153, allocations: 15.38 kB / 282.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.007253, allocations: 496.1 kB / 283.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.067e-06/0.007257, allocations: 3.984 kB / 283.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.157e-06/0.007261, allocations: 4.125 kB / 283.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.707e-05/0.007278, allocations: 15.67 kB / 283.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.007279, allocations: 0 / 283.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.294e-05/0.007312, allocations: 41.59 kB / 283.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.007322, allocations: 8 kB / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.007326, allocations: 0 / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.961e-06/0.007332, allocations: 3.938 kB / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.157e-05/0.007343, allocations: 0 / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-06/0.007345, allocations: 0 / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.636e-06/0.007353, allocations: 0 / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-06/0.007356, allocations: 4.094 kB / 283.3 MB, free: 10.98 MB / 266.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.138e-05/0.007407, allocations: 160.6 kB / 283.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-06/0.007412, allocations: 0 / 283.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.604e-05/0.007428, allocations: 3.156 kB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.007431, allocations: 7.938 kB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.007432, allocations: 0 / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.007434, allocations: 0 / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.168e-05/0.007496, allocations: 93.25 kB / 283.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.007498, allocations: 4 kB / 283.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.007499, allocations: 0 / 283.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.0075, allocations: 4 kB / 283.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-06/0.007502, allocations: 0 / 283.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.007503, allocations: 0 / 283.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.007505, allocations: 7.938 kB / 283.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.328e-05/0.007549, allocations: 72.39 kB / 283.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-06/0.007554, allocations: 3.984 kB / 283.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-06/0.007559, allocations: 3.938 kB / 283.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.372e-06/0.007565, allocations: 4 kB / 283.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-06/0.007572, allocations: 0 / 283.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-06/0.007574, allocations: 3.938 kB / 283.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.041e-05/0.007604, allocations: 123.2 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007605, allocations: 4.031 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002905/0.007895, allocations: 151.5 kB / 284 MB, free: 10.28 MB / 266.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.0006865/0.008581, allocations: 0.5475 MB / 284.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 3.347e-05/0.008615, allocations: 15.62 kB / 284.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.008616, allocations: 0 / 284.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.731e-06/0.008622, allocations: 7.688 kB / 284.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.4e-05/0.008706, allocations: 13.64 kB / 284.6 MB, free: 9.766 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002537/0.008959, allocations: 106.5 kB / 284.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.407e-05/0.008983, allocations: 59.16 kB / 284.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.279e-05/0.009006, allocations: 23.95 kB / 284.7 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.009034, allocations: 70.2 kB / 284.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of SimCode: time 4.3e-07/0.009034, allocations: 0 / 284.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of Templates: time 0.004663/0.0137, allocations: 3.87 MB / 288.7 MB, free: 5.586 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9110690699890256]