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.001383/0.001383, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001023/0.001023, allocations: 171 kB / 24.91 MB, free: 9.199 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.9335/0.9335, allocations: 177.1 MB / 205.3 MB, free: 5.129 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.202e-06/1.202e-06, allocations: 0 / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.522e-05, allocations: 2.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.004841/0.004856, allocations: 1.247 MB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.007406, allocations: 2.181 MB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.961e-05/0.007426, allocations: 0 / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.47e-05/0.00744, allocations: 0 / 276.8 MB, free: 13.76 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.007072/0.01451, allocations: 490.1 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.789e-05/0.01453, allocations: 0 / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.349e-05/0.01457, allocations: 15.94 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.48e-05/0.01461, allocations: 3.984 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.159e-05/0.01464, allocations: 7.938 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.003e-05/0.01469, allocations: 7.984 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.766e-06/0.0147, allocations: 0 / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006459/0.01534, allocations: 495.2 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.165e-05/0.01536, allocations: 3.938 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.481e-05/0.01537, allocations: 8 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005032/0.01587, allocations: 462.9 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.01588, allocations: 0 / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.01588, allocations: 4 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.01588, allocations: 0 / 278.3 MB, free: 12.29 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.0003037/0.01618, allocations: 324 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.01621, allocations: 8.031 kB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.01625, allocations: 76.22 kB / 278.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.703e-05/0.01635, allocations: 193 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006045/0.0224, allocations: 154.9 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.02244, allocations: 150.9 kB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.778e-05/0.02249, allocations: 105.5 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.02251, allocations: 83.16 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.02255, allocations: 150.6 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.02258, allocations: 154.6 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.316e-05/0.02262, allocations: 150.6 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001658/0.02278, allocations: 353.3 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.915e-05/0.02285, allocations: 173.2 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.393e-05/0.02288, allocations: 84.08 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.0229, allocations: 79.28 kB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/0.02297, allocations: 43.41 kB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.02297, allocations: 4 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 8.917e-05/0.02306, allocations: 37.62 kB / 280.6 MB, free: 9.906 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.02309, allocations: 55.34 kB / 280.6 MB, free: 9.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.756e-05/0.02315, allocations: 110.7 kB / 280.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.02316, allocations: 25.7 kB / 280.8 MB, free: 9.688 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.042e-05/0.02318, allocations: 80.14 kB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.02319, allocations: 0 / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.02321, allocations: 21.7 kB / 280.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.0233, allocations: 314.8 kB / 281.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.577e-06/0.0233, allocations: 128 / 281.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.396e-06/0.0233, allocations: 4 kB / 281.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.581e-05/0.02333, allocations: 8.859 kB / 281.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.02333, allocations: 0 / 281.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.189e-05/0.02337, allocations: 37.62 kB / 281.2 MB, free: 9.203 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.02339, allocations: 8 kB / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.02339, allocations: 0 / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.0234, allocations: 0 / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.936e-05/0.02342, allocations: 3.938 kB / 281.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-06/0.02342, allocations: 3.938 kB / 281.2 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.02344, allocations: 4.094 kB / 281.2 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.02344, allocations: 0 / 281.2 MB, free: 9.184 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.375e-05/0.02349, allocations: 109.8 kB / 281.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-06/0.0235, allocations: 0 / 281.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.258e-05/0.02352, allocations: 11.14 kB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.02352, allocations: 0 / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.02353, allocations: 3.938 kB / 281.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.02353, allocations: 0 / 281.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.737e-05/0.0236, allocations: 61.91 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.0236, allocations: 0 / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.0236, allocations: 0 / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-07/0.0236, allocations: 4 kB / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-06/0.0236, allocations: 0 / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.0236, allocations: 4 kB / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.0236, allocations: 0 / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.725e-05/0.02365, allocations: 69 kB / 281.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-06/0.02366, allocations: 0 / 281.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.446e-06/0.02366, allocations: 4 kB / 281.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.02367, allocations: 0 / 281.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.123e-05/0.02368, allocations: 3.984 kB / 281.5 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.61e-07/0.02368, allocations: 0 / 281.5 MB, free: 8.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.576e-05/0.0237, allocations: 20.81 kB / 281.5 MB, free: 8.852 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0237, allocations: 0 / 281.5 MB, free: 8.852 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003547/0.02406, allocations: 151.5 kB / 281.7 MB, free: 8.703 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.000959/0.02501, allocations: 0.5698 MB / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.571e-05/0.02506, allocations: 12.84 kB / 282.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.02506, allocations: 0 / 282.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.831e-06/0.02507, allocations: 8.797 kB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.649e-05/0.02512, allocations: 4 kB / 282.3 MB, free: 8.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006349/0.03147, allocations: 108.7 kB / 282.4 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.077e-05/0.0315, allocations: 59.48 kB / 282.4 MB, free: 8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.952e-05/0.03153, allocations: 7.984 kB / 282.4 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.579e-05/0.03157, allocations: 51.38 kB / 282.5 MB, free: 7.941 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.03157, allocations: 0 / 282.5 MB, free: 7.941 MB / 266.7 MB Notification: Performance of Templates: time 0.01836/0.04993, allocations: 3.878 MB / 286.4 MB, free: 4.066 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.787476701196283]