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.001835/0.001835, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001916/0.001916, allocations: 169.3 kB / 24.28 MB, free: 152 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.563/1.563, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.343e-06/1.343e-06, allocations: 0 / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.854e-05, allocations: 2.312 kB / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002544/0.002573, allocations: 1.224 MB / 273.5 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003703/0.006276, allocations: 2.138 MB / 275.6 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.193e-05/0.006298, allocations: 3.938 kB / 275.6 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.407e-05/0.006312, allocations: 4 kB / 275.6 MB, free: 14.48 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.001297/0.007609, allocations: 478.2 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.312e-05/0.007632, allocations: 3.938 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.512e-05/0.007677, allocations: 11.92 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.007717, allocations: 7.984 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.28e-05/0.00775, allocations: 3.938 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.007948, allocations: 4 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.007964, allocations: 4 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008462/0.008811, allocations: 483.3 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.008825, allocations: 11.94 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.821e-05/0.008843, allocations: 0 / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007361/0.009579, allocations: 474.8 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.009582, allocations: 0 / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.009583, allocations: 0 / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.009587, allocations: 3.938 kB / 277.1 MB, free: 13.03 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.0005619/0.01015, allocations: 447.3 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.01019, allocations: 12.02 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.0103, allocations: 132.1 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.0105, allocations: 227.8 kB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.01063, allocations: 238.8 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.01075, allocations: 242.8 kB / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.01086, allocations: 145.5 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-05/0.01092, allocations: 123.1 kB / 278.6 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.01106, allocations: 242.4 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/0.01119, allocations: 246.4 kB / 279.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.01132, allocations: 246.3 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.01173, allocations: 0.5642 MB / 279.9 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.01191, allocations: 269.4 kB / 280.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.087e-05/0.01199, allocations: 126.9 kB / 280.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.645e-05/0.01206, allocations: 119.2 kB / 280.4 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.01228, allocations: 57 kB / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.023e-06/0.01229, allocations: 0 / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.01245, allocations: 37.64 kB / 280.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.0125, allocations: 55.41 kB / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.01263, allocations: 157.9 kB / 280.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.01265, allocations: 29.7 kB / 280.7 MB, free: 9.191 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/0.01273, allocations: 130.9 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.01274, allocations: 0 / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.01278, allocations: 19.31 kB / 280.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002611/0.01304, allocations: 0.4884 MB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-06/0.01305, allocations: 4.125 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.648e-06/0.01305, allocations: 0 / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.044e-05/0.01308, allocations: 15.69 kB / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01308, allocations: 0 / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.835e-05/0.01314, allocations: 33.66 kB / 281.4 MB, free: 8.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.01316, allocations: 8 kB / 281.4 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.01316, allocations: 3.938 kB / 281.4 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.01318, allocations: 3.938 kB / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-05/0.0132, allocations: 3.984 kB / 281.5 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.868e-06/0.0132, allocations: 8.031 kB / 281.5 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.01322, allocations: 4 kB / 281.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.01322, allocations: 0 / 281.5 MB, free: 8.438 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.0001169/0.01334, allocations: 156.6 kB / 281.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.01335, allocations: 0 / 281.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.01338, allocations: 15.09 kB / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.01338, allocations: 0 / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01339, allocations: 0 / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.01339, allocations: 0 / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.01352, allocations: 112.6 kB / 281.7 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01352, allocations: 0 / 281.7 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-06/0.01352, allocations: 4 kB / 281.7 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.01353, allocations: 0 / 281.7 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-06/0.01353, allocations: 0 / 281.7 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.01353, allocations: 3.938 kB / 281.8 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01353, allocations: 0 / 281.8 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.01364, allocations: 76.38 kB / 281.8 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-06/0.01364, allocations: 4 kB / 281.8 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.01366, allocations: 0 / 281.8 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.43e-05/0.01367, allocations: 3.938 kB / 281.8 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.01369, allocations: 0 / 281.8 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.01369, allocations: 4.031 kB / 281.8 MB, free: 8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.272e-05/0.01378, allocations: 127.2 kB / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01378, allocations: 4 kB / 282 MB, free: 7.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000432/0.01422, allocations: 151.5 kB / 282.1 MB, free: 7.723 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.001582/0.0158, allocations: 0.5355 MB / 282.6 MB, free: 7.266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.512e-05/0.01588, allocations: 15.67 kB / 282.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01589, allocations: 0 / 282.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.557e-05/0.0159, allocations: 11.69 kB / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.01605, allocations: 4 kB / 282.7 MB, free: 7.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00029/0.01634, allocations: 110.3 kB / 282.8 MB, free: 7.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.798e-05/0.01641, allocations: 63.36 kB / 282.8 MB, free: 7.008 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.612e-05/0.01645, allocations: 12.11 kB / 282.9 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.713e-05/0.01647, allocations: 12.5 kB / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01647, allocations: 0 / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of Templates: time 0.007888/0.02436, allocations: 3.218 MB / 286.1 MB, free: 3.762 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.556975099025294]