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.0009471/0.0009471, allocations: 82.59 kB / 21.42 MB, free: 3.066 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.001031/0.001031, allocations: 165.2 kB / 24.82 MB, free: 9.289 MB / 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 0.9506/0.9506, allocations: 177 MB / 205.1 MB, free: 5.469 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.152e-06/1.152e-06, allocations: 0 / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.182e-05, allocations: 2.312 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002163/0.002185, allocations: 1.251 MB / 274.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.004756, allocations: 2.145 MB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.809e-05/0.004785, allocations: 4 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.872e-05/0.004803, allocations: 0 / 276.7 MB, free: 13.84 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.001267/0.006071, allocations: 482.1 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.327e-05/0.006094, allocations: 7.938 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.867e-05/0.006133, allocations: 7.938 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.063e-05/0.006163, allocations: 0 / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.74e-05/0.006201, allocations: 11.98 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.104e-05/0.006252, allocations: 7.938 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.668e-06/0.006261, allocations: 0 / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008282/0.00709, allocations: 495.3 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.007103, allocations: 0 / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.707e-05/0.00712, allocations: 7.938 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.007746, allocations: 466.8 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.007748, allocations: 4 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.007749, allocations: 0 / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.007752, allocations: 0 / 278.1 MB, free: 12.38 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.0003651/0.008117, allocations: 455.7 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.008154, allocations: 11.98 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.00821, allocations: 124.1 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.008317, allocations: 227.8 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.957e-05/0.008377, allocations: 246.8 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.008431, allocations: 238.8 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.81e-05/0.008489, allocations: 149.4 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.00852, allocations: 119.4 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.008582, allocations: 246.7 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-05/0.008639, allocations: 242.3 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.604e-05/0.008695, allocations: 238.4 kB / 280.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.009172, allocations: 0.5569 MB / 280.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.222e-05/0.009254, allocations: 265.4 kB / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.511e-05/0.009289, allocations: 134.9 kB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.009316, allocations: 123.1 kB / 281.5 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.093e-05/0.009397, allocations: 49.06 kB / 281.5 MB, free: 8.875 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.034e-06/0.009399, allocations: 0 / 281.5 MB, free: 8.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 9.941e-05/0.009499, allocations: 33.69 kB / 281.5 MB, free: 8.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.009526, allocations: 59.34 kB / 281.6 MB, free: 8.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.009597, allocations: 161.9 kB / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-06/0.009605, allocations: 29.83 kB / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.009639, allocations: 130.9 kB / 281.9 MB, free: 8.422 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.009653, allocations: 3.953 kB / 281.9 MB, free: 8.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.009679, allocations: 23.38 kB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.009795, allocations: 492.1 kB / 282.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-06/0.009802, allocations: 0 / 282.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.658e-06/0.009806, allocations: 4 kB / 282.4 MB, free: 7.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.978e-05/0.009826, allocations: 7.688 kB / 282.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.009829, allocations: 7.984 kB / 282.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.392e-05/0.009883, allocations: 37.77 kB / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.009895, allocations: 7.938 kB / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.009899, allocations: 0 / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.009912, allocations: 0 / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.848e-05/0.009931, allocations: 0 / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.009935, allocations: 7.938 kB / 282.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.009949, allocations: 0 / 282.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-06/0.009954, allocations: 0 / 282.5 MB, free: 7.812 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.41e-05/0.01002, allocations: 152.6 kB / 282.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-06/0.01003, allocations: 4 kB / 282.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.01006, allocations: 11.14 kB / 282.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.01006, allocations: 4.031 kB / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.01006, allocations: 0 / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.01006, allocations: 7.875 kB / 282.7 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.988e-05/0.01014, allocations: 97.25 kB / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.01014, allocations: 0 / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.146e-06/0.01015, allocations: 0 / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.01015, allocations: 0 / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-06/0.01015, allocations: 3.984 kB / 282.8 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.01015, allocations: 0 / 282.8 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01016, allocations: 4 kB / 282.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.109e-05/0.01023, allocations: 72.33 kB / 282.8 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-06/0.01023, allocations: 4 kB / 282.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.486e-06/0.01024, allocations: 0 / 282.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.01025, allocations: 0 / 282.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-06/0.01026, allocations: 3.984 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.01026, allocations: 0 / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.12e-05/0.01031, allocations: 123.2 kB / 283 MB, free: 7.277 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01031, allocations: 0 / 283 MB, free: 7.277 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.01071, allocations: 151.5 kB / 283.1 MB, free: 7.129 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.0008851/0.0116, allocations: 0.5478 MB / 283.7 MB, free: 6.633 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.124e-05/0.01165, allocations: 11.69 kB / 283.7 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01165, allocations: 3.938 kB / 283.7 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.506e-06/0.01166, allocations: 15.62 kB / 283.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.01178, allocations: 8.125 kB / 283.7 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003491/0.01213, allocations: 110.4 kB / 283.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.039e-05/0.01216, allocations: 59.34 kB / 283.9 MB, free: 6.371 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.342e-05/0.0122, allocations: 7.984 kB / 283.9 MB, free: 6.363 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.01223, allocations: 70.2 kB / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.01223, allocations: 0 / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of Templates: time 0.006134/0.01837, allocations: 3.889 MB / 287.8 MB, free: 2.402 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: 2.794802819378674]