Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001469/0.001469, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.007/1.007, allocations: 177 MB / 204.8 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 272.9 MB, free: 1.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.078e-05/3.261e-05, allocations: 9.125 kB / 272.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00177/0.001803, allocations: 1.229 MB / 274.1 MB, free: 284 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.004297, allocations: 2.177 MB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.96e-05/0.004327, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.605e-05/0.004353, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001185/0.005537, allocations: 482.2 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.443e-05/0.005562, allocations: 4 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.705e-05/0.005609, allocations: 15.92 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.068e-05/0.005639, allocations: 0 / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.221e-05/0.005672, allocations: 7.938 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.655e-05/0.005728, allocations: 11.98 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.165e-05/0.00574, allocations: 0 / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006538/0.006394, allocations: 495.2 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.006407, allocations: 0 / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.00643, allocations: 4 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.006946, allocations: 470.8 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.006948, allocations: 0 / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.006949, allocations: 4 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.006954, allocations: 4 kB / 277.7 MB, free: 12.62 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.0003712/0.007325, allocations: 451.7 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.007362, allocations: 11.98 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.974e-05/0.007422, allocations: 124.1 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.00754, allocations: 227.8 kB / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.007605, allocations: 242.8 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.519e-05/0.00766, allocations: 242.7 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.007889, allocations: 149.4 kB / 279.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.007914, allocations: 119.4 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.52e-05/0.007969, allocations: 242.7 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.529e-05/0.008024, allocations: 254.3 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.153e-05/0.008076, allocations: 238.4 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002227/0.008299, allocations: 0.5642 MB / 280.6 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.508e-05/0.008384, allocations: 269.4 kB / 280.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.4e-05/0.008418, allocations: 126.9 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.008447, allocations: 123.2 kB / 281.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.008551, allocations: 49.06 kB / 281.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.013e-06/0.008553, allocations: 0 / 281.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001291/0.008682, allocations: 33.77 kB / 281.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.008716, allocations: 63.33 kB / 281.2 MB, free: 8.992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.008799, allocations: 161.9 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-06/0.008807, allocations: 25.7 kB / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.855e-05/0.008846, allocations: 126.9 kB / 281.5 MB, free: 8.656 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.008864, allocations: 11.95 kB / 281.5 MB, free: 8.645 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.00889, allocations: 19.36 kB / 281.5 MB, free: 8.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.009004, allocations: 492.1 kB / 282 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.009014, allocations: 4 kB / 282 MB, free: 8.121 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-06/0.009019, allocations: 0 / 282 MB, free: 8.121 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.478e-05/0.009044, allocations: 19.62 kB / 282.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.009046, allocations: 4 kB / 282.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.298e-05/0.009089, allocations: 33.7 kB / 282.1 MB, free: 8.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.009103, allocations: 6.969 kB / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.009108, allocations: 0 / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.009122, allocations: 3.984 kB / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.67e-05/0.009149, allocations: 7.938 kB / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.009154, allocations: 0 / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.29e-05/0.009167, allocations: 0 / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.009172, allocations: 0 / 282.1 MB, free: 8.039 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 7.449e-05/0.009247, allocations: 156.6 kB / 282.3 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.623e-06/0.009253, allocations: 4 kB / 282.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.009282, allocations: 3.156 kB / 282.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.009284, allocations: 0 / 282.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.009289, allocations: 3.938 kB / 282.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.009293, allocations: 0 / 282.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.693e-05/0.00938, allocations: 116.6 kB / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.009381, allocations: 0 / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-06/0.009385, allocations: 7.938 kB / 282.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.009386, allocations: 0 / 282.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-06/0.009391, allocations: 4 kB / 282.4 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.009392, allocations: 4 kB / 282.4 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.009392, allocations: 0 / 282.4 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.808e-05/0.009451, allocations: 72.38 kB / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.009456, allocations: 0 / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.009467, allocations: 4 kB / 282.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.009472, allocations: 0 / 282.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.382e-05/0.009486, allocations: 7.938 kB / 282.5 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.009488, allocations: 0 / 282.5 MB, free: 7.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.255e-05/0.00953, allocations: 131.3 kB / 282.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00953, allocations: 0 / 282.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003247/0.009855, allocations: 151.5 kB / 282.8 MB, free: 7.32 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.0008664/0.01072, allocations: 0.5455 MB / 283.3 MB, free: 6.828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.778e-05/0.01079, allocations: 15.62 kB / 283.3 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.01079, allocations: 4.062 kB / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.024e-06/0.0108, allocations: 11.69 kB / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001095/0.01091, allocations: 0 / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.01132, allocations: 126.2 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.884e-05/0.01135, allocations: 51.36 kB / 283.5 MB, free: 6.566 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.799e-05/0.01138, allocations: 7.984 kB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.311e-05/0.0114, allocations: 20.55 kB / 283.5 MB, free: 6.539 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.0114, allocations: 0 / 283.5 MB, free: 6.539 MB / 266.7 MB Notification: Performance of Templates: time 0.004835/0.01624, allocations: 3.21 MB / 286.7 MB, free: 3.328 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.0803506150841713]