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.001455/0.001455, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001055/0.001055, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 1.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.602 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.673e-06/1.673e-06, allocations: 0 / 272.9 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.588e-05/2.755e-05, allocations: 2.312 kB / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001469/0.001497, allocations: 1.237 MB / 274.2 MB, free: 316 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.003861, allocations: 2.177 MB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.003885, allocations: 0 / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.191e-05/0.003907, allocations: 4 kB / 276.4 MB, free: 14.12 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.0008903/0.004797, allocations: 474.2 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.198e-05/0.004819, allocations: 7.938 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.619e-05/0.004865, allocations: 11.92 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.0049, allocations: 4 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.379e-05/0.004934, allocations: 4 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.441e-05/0.004988, allocations: 7.984 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.005001, allocations: 3.984 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006192/0.00562, allocations: 491.2 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.005635, allocations: 8 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.005656, allocations: 4 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004659/0.006122, allocations: 470.8 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.006124, allocations: 3.938 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006125, allocations: 0 / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.006128, allocations: 0 / 277.8 MB, free: 12.66 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.0003306/0.006459, allocations: 451.7 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.006495, allocations: 12.02 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.006553, allocations: 124.1 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.006661, allocations: 227.8 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.94e-05/0.00671, allocations: 238.8 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.006758, allocations: 242.8 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.511e-05/0.006813, allocations: 145.5 kB / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.006839, allocations: 123.1 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/0.006896, allocations: 246.4 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.665e-05/0.006953, allocations: 242.4 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.139e-05/0.007004, allocations: 242.3 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.007201, allocations: 0.5642 MB / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.638e-05/0.007278, allocations: 269.4 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.007307, allocations: 126.9 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.00733, allocations: 119.2 kB / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.627e-05/0.007406, allocations: 57 kB / 281.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.803e-06/0.007408, allocations: 0 / 281.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001117/0.00752, allocations: 45.62 kB / 281.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.007548, allocations: 55.34 kB / 281.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.832e-05/0.007616, allocations: 157.9 kB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.007624, allocations: 25.7 kB / 281.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.007659, allocations: 138.8 kB / 281.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.379e-05/0.007673, allocations: 3.953 kB / 281.6 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.02e-05/0.007693, allocations: 15.38 kB / 281.6 MB, free: 8.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.007793, allocations: 0.4924 MB / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-06/0.007801, allocations: 0 / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.537e-06/0.007805, allocations: 0 / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.956e-05/0.007824, allocations: 15.69 kB / 282.1 MB, free: 8.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.007826, allocations: 0 / 282.1 MB, free: 8.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.101e-05/0.007867, allocations: 29.7 kB / 282.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.007879, allocations: 8 kB / 282.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.007885, allocations: 7.938 kB / 282.2 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.007897, allocations: 0 / 282.2 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.207e-05/0.007919, allocations: 7.922 kB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.007923, allocations: 4.094 kB / 282.2 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.059e-05/0.007934, allocations: 0 / 282.2 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.007939, allocations: 0 / 282.2 MB, free: 8.07 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 0.0001348/0.008074, allocations: 156.6 kB / 282.3 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-06/0.008079, allocations: 0 / 282.3 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.008107, allocations: 11.09 kB / 282.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.00811, allocations: 4 kB / 282.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.008114, allocations: 0 / 282.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.008117, allocations: 0 / 282.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.929e-05/0.008196, allocations: 108.6 kB / 282.4 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.008197, allocations: 8 kB / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-06/0.008199, allocations: 0 / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.0082, allocations: 0 / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-06/0.008205, allocations: 0 / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.008207, allocations: 3.938 kB / 282.5 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.008207, allocations: 0 / 282.5 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.25e-05/0.00826, allocations: 76.38 kB / 282.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-06/0.008265, allocations: 0 / 282.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-06/0.008274, allocations: 0 / 282.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.783e-06/0.008281, allocations: 7.938 kB / 282.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/0.008294, allocations: 3.938 kB / 282.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-06/0.008295, allocations: 4.031 kB / 282.5 MB, free: 7.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.244e-05/0.008327, allocations: 127.2 kB / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008327, allocations: 0 / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002598/0.008587, allocations: 147.5 kB / 282.8 MB, free: 7.359 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.0007569/0.009344, allocations: 0.5488 MB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.71e-05/0.009401, allocations: 15.67 kB / 283.4 MB, free: 6.871 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.009403, allocations: 0 / 283.4 MB, free: 6.871 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.481e-06/0.009408, allocations: 7.688 kB / 283.4 MB, free: 6.859 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.009509, allocations: 8 kB / 283.4 MB, free: 6.852 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003609/0.00987, allocations: 118.4 kB / 283.5 MB, free: 6.707 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.614e-05/0.009896, allocations: 51.36 kB / 283.6 MB, free: 6.637 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.259e-05/0.009918, allocations: 11.98 kB / 283.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.844e-05/0.009937, allocations: 12.5 kB / 283.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009937, allocations: 0 / 283.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of Templates: time 0.00436/0.0143, allocations: 3.222 MB / 286.8 MB, free: 3.387 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.910133635159582]