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.001976/0.001976, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.001955/0.001955, allocations: 160.8 kB / 24.27 MB, free: 160 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.597/1.597, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.503e-06/1.503e-06, allocations: 0 / 272.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.722e-05, allocations: 4.984 kB / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002331/0.002359, allocations: 1.214 MB / 273.4 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.006163, allocations: 2.149 MB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.006182, allocations: 0 / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.006195, allocations: 0 / 275.5 MB, free: 14.46 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.001401/0.007596, allocations: 478.2 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.37e-05/0.007619, allocations: 0 / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.379e-05/0.007673, allocations: 23.91 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.007711, allocations: 0 / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.797e-05/0.007749, allocations: 7.938 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.008024, allocations: 4 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.008038, allocations: 0 / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000953/0.008991, allocations: 495.2 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.009004, allocations: 0 / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.009027, allocations: 4 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007787/0.009805, allocations: 470.8 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.00981, allocations: 0 / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.009811, allocations: 0 / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.009816, allocations: 0 / 277 MB, free: 13.01 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.0005981/0.01041, allocations: 455.3 kB / 277.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.01045, allocations: 15.98 kB / 277.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.01056, allocations: 124.1 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.01077, allocations: 227.8 kB / 277.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.0109, allocations: 238.8 kB / 278 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.01104, allocations: 250.8 kB / 278.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.01115, allocations: 153.4 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-05/0.01122, allocations: 123.4 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.01136, allocations: 242.7 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/0.0115, allocations: 242.3 kB / 279 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.01163, allocations: 242.4 kB / 279.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004326/0.01206, allocations: 0.5681 MB / 279.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.01225, allocations: 265.4 kB / 280.1 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.905e-05/0.01233, allocations: 126.9 kB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.549e-05/0.01242, allocations: 119.2 kB / 280.3 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/0.01254, allocations: 53.06 kB / 280.3 MB, free: 9.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.535e-06/0.01255, allocations: 0 / 280.3 MB, free: 9.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001725/0.01272, allocations: 41.64 kB / 280.4 MB, free: 9.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.01278, allocations: 55.34 kB / 280.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.01293, allocations: 165.9 kB / 280.6 MB, free: 9.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.01294, allocations: 25.7 kB / 280.6 MB, free: 9.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.01303, allocations: 126.9 kB / 280.8 MB, free: 9.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.01304, allocations: 4 kB / 280.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.01307, allocations: 15.38 kB / 280.8 MB, free: 9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000308/0.01338, allocations: 0.4884 MB / 281.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.01339, allocations: 4 kB / 281.3 MB, free: 8.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.193e-06/0.0134, allocations: 4.125 kB / 281.3 MB, free: 8.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.037e-05/0.01343, allocations: 11.69 kB / 281.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01343, allocations: 0 / 281.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.899e-05/0.0135, allocations: 37.59 kB / 281.3 MB, free: 8.434 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.01352, allocations: 4 kB / 281.3 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01352, allocations: 3.938 kB / 281.3 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.01354, allocations: 4 kB / 281.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.955e-05/0.01357, allocations: 7.922 kB / 281.3 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.01358, allocations: 0 / 281.3 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.0136, allocations: 0 / 281.3 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.0136, allocations: 4.094 kB / 281.3 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 0.0001374/0.01374, allocations: 160.6 kB / 281.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.01375, allocations: 0 / 281.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.01378, allocations: 3.156 kB / 281.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01379, allocations: 0 / 281.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.01379, allocations: 3.938 kB / 281.5 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.0138, allocations: 4 kB / 281.5 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.01394, allocations: 108.6 kB / 281.6 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.01394, allocations: 0 / 281.6 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.362e-06/0.01395, allocations: 4 kB / 281.6 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.01395, allocations: 4 kB / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.01395, allocations: 0 / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01395, allocations: 0 / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01395, allocations: 0 / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.01406, allocations: 80.31 kB / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-06/0.01407, allocations: 0 / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.01408, allocations: 4 kB / 281.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.458e-05/0.0141, allocations: 4 kB / 281.7 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.01411, allocations: 3.938 kB / 281.7 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.01412, allocations: 0 / 281.7 MB, free: 7.973 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.01422, allocations: 135.3 kB / 281.8 MB, free: 7.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01422, allocations: 4.031 kB / 281.8 MB, free: 7.836 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004948/0.01471, allocations: 147.5 kB / 282 MB, free: 7.691 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.00166/0.01637, allocations: 0.5308 MB / 282.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.294e-05/0.01647, allocations: 19.67 kB / 282.5 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.01647, allocations: 0 / 282.5 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.747e-05/0.01649, allocations: 15.62 kB / 282.6 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.01663, allocations: 3.938 kB / 282.6 MB, free: 7.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002923/0.01692, allocations: 114.3 kB / 282.7 MB, free: 7.027 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.105e-05/0.01698, allocations: 55.36 kB / 282.7 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.382e-05/0.01701, allocations: 7.984 kB / 282.7 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.01704, allocations: 16.62 kB / 282.8 MB, free: 6.93 MB / 266.7 MB Notification: Performance of SimCode: time 4.2e-07/0.01704, allocations: 0 / 282.8 MB, free: 6.93 MB / 266.7 MB Notification: Performance of Templates: time 0.008158/0.0252, allocations: 3.218 MB / 286 MB, free: 3.707 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.646573630045168]