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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9571/0.9571, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 267.9 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.325e-05, allocations: 6.25 kB / 268 MB, free: 6.488 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001777/0.0018, allocations: 1.229 MB / 269.2 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.00404, allocations: 2.056 MB / 271.2 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.007e-05/0.00406, allocations: 7.938 kB / 271.2 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.004079, allocations: 4 kB / 271.2 MB, free: 3.172 MB / 250.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.001043/0.005122, allocations: 442.4 kB / 271.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.357e-05/0.005145, allocations: 3.984 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.346e-05/0.005189, allocations: 11.94 kB / 271.7 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.876e-05/0.005217, allocations: 0 / 271.7 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.936e-05/0.005247, allocations: 7.938 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.005322, allocations: 3.984 kB / 271.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.005334, allocations: 7.984 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005842/0.005919, allocations: 447.3 kB / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.00593, allocations: 4 kB / 272.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.122e-05/0.005951, allocations: 7.984 kB / 272.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004836/0.006435, allocations: 419 kB / 272.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.006438, allocations: 0 / 272.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.006439, allocations: 0 / 272.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.006443, allocations: 0 / 272.6 MB, free: 1.844 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.000357/0.0068, allocations: 431.5 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.006836, allocations: 12.92 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.885e-05/0.006895, allocations: 120.5 kB / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.007257, allocations: 239.8 kB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.007304, allocations: 238.8 kB / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.007347, allocations: 246.8 kB / 273.8 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.299e-05/0.0074, allocations: 149.4 kB / 274 MB, free: 376 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.007426, allocations: 123.1 kB / 274.1 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.035e-05/0.007487, allocations: 246.3 kB / 274.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.097e-05/0.007548, allocations: 238.4 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.384e-05/0.007602, allocations: 246.4 kB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002111/0.007813, allocations: 0.5681 MB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.91e-05/0.007892, allocations: 265.4 kB / 275.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.531e-05/0.007927, allocations: 130.9 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.007951, allocations: 119.2 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.224e-05/0.008043, allocations: 57.06 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.963e-06/0.008045, allocations: 0 / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.008166, allocations: 37.58 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.008194, allocations: 51.41 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.13e-05/0.008266, allocations: 169.9 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.008274, allocations: 25.7 kB / 276.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/0.008307, allocations: 126.9 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.278e-05/0.00832, allocations: 0 / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.008343, allocations: 23.38 kB / 276.4 MB, free: 13.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.00844, allocations: 496.2 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.008449, allocations: 0 / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.338e-06/0.008453, allocations: 0 / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.369e-05/0.008477, allocations: 15.67 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.008478, allocations: 0 / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.584e-05/0.008524, allocations: 45.59 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.008539, allocations: 4 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.008547, allocations: 3.938 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.008563, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.416e-05/0.008587, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.008592, allocations: 4.094 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.384e-05/0.008605, allocations: 0 / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.008613, allocations: 4 kB / 276.9 MB, free: 13.27 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 6.127e-05/0.008674, allocations: 152.6 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-06/0.008682, allocations: 3.984 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.153e-05/0.008714, allocations: 11.09 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.008716, allocations: 0 / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.008719, allocations: 0 / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.008723, allocations: 4 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.728e-05/0.0088, allocations: 116.6 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.008801, allocations: 7.938 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-06/0.008803, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.008804, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-06/0.00881, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.008813, allocations: 7.875 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.008814, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.625e-05/0.00887, allocations: 64.45 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-06/0.008876, allocations: 7.984 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.876e-06/0.008885, allocations: 0 / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.008893, allocations: 3.938 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.008906, allocations: 4 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.008909, allocations: 4.031 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.17e-05/0.00894, allocations: 123.2 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00894, allocations: 0 / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000282/0.009222, allocations: 131.6 kB / 277.6 MB, free: 12.57 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.0008688/0.01009, allocations: 0.5372 MB / 278.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.93e-05/0.01016, allocations: 15.62 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01016, allocations: 0 / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.372e-06/0.01017, allocations: 7.688 kB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001077/0.01028, allocations: 4 kB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.01068, allocations: 122.4 kB / 278.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.992e-05/0.01071, allocations: 59.34 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.59e-05/0.01073, allocations: 15.92 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.124e-05/0.01075, allocations: 12.5 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01075, allocations: 3.938 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of Templates: time 0.005212/0.01597, allocations: 3.422 MB / 281.7 MB, free: 8.402 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] 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","",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.723976475186646]