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.001014/0.001014, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001096/0.001096, allocations: 170.1 kB / 24.99 MB, free: 8.344 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.9553/0.9553, allocations: 177.1 MB / 205.3 MB, free: 5.625 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.362e-06/1.362e-06, allocations: 0 / 273 MB, free: 1.887 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.787e-05/1.924e-05, allocations: 2.312 kB / 273 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001464/0.001483, allocations: 1.247 MB / 274.3 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.003595, allocations: 2.162 MB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.889e-05/0.003624, allocations: 0 / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.003644, allocations: 0 / 276.4 MB, free: 14.46 MB / 266.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.0008574/0.004502, allocations: 478.2 kB / 276.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.049e-05/0.004522, allocations: 3.938 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.762e-05/0.00457, allocations: 11.92 kB / 276.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.134e-05/0.004601, allocations: 4 kB / 276.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.132e-05/0.004632, allocations: 7.984 kB / 276.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.198e-05/0.004684, allocations: 15.92 kB / 276.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.004694, allocations: 4 kB / 276.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000524/0.005218, allocations: 487.3 kB / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.005229, allocations: 0 / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.874e-05/0.005247, allocations: 3.938 kB / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.005688, allocations: 474.8 kB / 277.9 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.00569, allocations: 0 / 277.9 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005691, allocations: 0 / 277.9 MB, free: 13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.005694, allocations: 0 / 277.9 MB, free: 13 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.0003316/0.006026, allocations: 455.7 kB / 278.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.006057, allocations: 8.031 kB / 278.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/0.006113, allocations: 124.1 kB / 278.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.006228, allocations: 231.8 kB / 278.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002994/0.006527, allocations: 238.8 kB / 278.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.006572, allocations: 238.8 kB / 279.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.847e-05/0.00663, allocations: 145.5 kB / 279.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.006657, allocations: 131.1 kB / 279.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.426e-05/0.006711, allocations: 242.4 kB / 279.6 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.164e-05/0.006763, allocations: 246.3 kB / 279.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.694e-05/0.00681, allocations: 242.4 kB / 280.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.007006, allocations: 0.5642 MB / 280.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.528e-05/0.007081, allocations: 269.4 kB / 280.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.767e-05/0.007109, allocations: 130.9 kB / 281.1 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.007133, allocations: 119.2 kB / 281.2 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.315e-05/0.007216, allocations: 53 kB / 281.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.914e-06/0.007218, allocations: 0 / 281.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001226/0.00734, allocations: 37.64 kB / 281.3 MB, free: 9.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.00737, allocations: 55.41 kB / 281.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.007442, allocations: 161.9 kB / 281.5 MB, free: 9.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.877e-06/0.007451, allocations: 29.7 kB / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.007486, allocations: 130.9 kB / 281.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.007499, allocations: 8.078 kB / 281.7 MB, free: 9.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/0.00752, allocations: 15.38 kB / 281.7 MB, free: 8.992 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.803e-05/0.007618, allocations: 0.4884 MB / 282.2 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.114e-06/0.007625, allocations: 0 / 282.2 MB, free: 8.492 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-06/0.007629, allocations: 0 / 282.2 MB, free: 8.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.926e-05/0.007648, allocations: 11.69 kB / 282.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.007649, allocations: 0 / 282.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.584e-05/0.007685, allocations: 37.7 kB / 282.2 MB, free: 8.434 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.007698, allocations: 8 kB / 282.2 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.007703, allocations: 3.938 kB / 282.2 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.007713, allocations: 8.031 kB / 282.2 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.865e-05/0.007732, allocations: 3.984 kB / 282.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.007737, allocations: 0 / 282.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.068e-05/0.007747, allocations: 0 / 282.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.007751, allocations: 0 / 282.2 MB, free: 8.41 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.998e-05/0.007811, allocations: 156.6 kB / 282.4 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.378e-06/0.007816, allocations: 0 / 282.4 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.00784, allocations: 11.09 kB / 282.4 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.007841, allocations: 0 / 282.4 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.007844, allocations: 0 / 282.4 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.007847, allocations: 4 kB / 282.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.312e-05/0.00792, allocations: 120.6 kB / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.007921, allocations: 0 / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-06/0.007922, allocations: 0 / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.007923, allocations: 0 / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.007927, allocations: 0 / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.007928, allocations: 3.938 kB / 282.5 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.007929, allocations: 0 / 282.5 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.777e-05/0.007977, allocations: 72.38 kB / 282.6 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.007982, allocations: 4 kB / 282.6 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-06/0.007991, allocations: 4 kB / 282.6 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.803e-06/0.007998, allocations: 7.969 kB / 282.6 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.00801, allocations: 0 / 282.6 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.42e-07/0.008011, allocations: 0 / 282.6 MB, free: 7.969 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.259e-05/0.008043, allocations: 127.2 kB / 282.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008043, allocations: 0 / 282.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002901/0.008334, allocations: 147.5 kB / 282.9 MB, free: 7.699 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.0007898/0.009123, allocations: 0.556 MB / 283.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.439e-05/0.009188, allocations: 11.69 kB / 283.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.009189, allocations: 0 / 283.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.322e-06/0.009195, allocations: 15.56 kB / 283.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001046/0.0093, allocations: 4 kB / 283.5 MB, free: 7.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00038/0.00968, allocations: 118.5 kB / 283.6 MB, free: 7.035 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.694e-05/0.009707, allocations: 55.36 kB / 283.6 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.522e-05/0.009732, allocations: 7.984 kB / 283.6 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.009752, allocations: 16.48 kB / 283.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.009753, allocations: 0 / 283.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of Templates: time 0.004526/0.01428, allocations: 3.224 MB / 286.9 MB, free: 3.715 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.7962085558101535]