Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00567/0.00567, allocations: 107.6 kB / 21.98 MB, free: 5.223 MB / 14.72 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.001431/0.001431, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 259 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 55.91 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2899, allocations: 53.38 MB / 433.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002433/0.2923, allocations: 1.197 MB / 434.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003713/0.296, allocations: 2.2 MB / 436.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.657e-05/0.2961, allocations: 0 / 436.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.2961, allocations: 4 kB / 436.5 MB, free: 3.531 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.001376/0.2975, allocations: 486.4 kB / 437 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.727e-05/0.2975, allocations: 0 / 437 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.501e-05/0.2975, allocations: 15.92 kB / 437 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.2976, allocations: 0 / 437 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.743e-05/0.2976, allocations: 7.984 kB / 437 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.2979, allocations: 7.938 kB / 437.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.998e-06/0.2979, allocations: 0 / 437.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009208/0.2988, allocations: 0.5229 MB / 437.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.2988, allocations: 3.984 kB / 437.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.2989, allocations: 4 kB / 437.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005999/0.2995, allocations: 385.3 kB / 438 MB, free: 2.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2995, allocations: 4 kB / 438 MB, free: 2.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2995, allocations: 0 / 438 MB, free: 2.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2995, allocations: 0 / 438 MB, free: 2.117 MB / 334.1 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.0005002/0.3, allocations: 345.4 kB / 438.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3, allocations: 12.03 kB / 438.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.072e-05/0.3001, allocations: 80.17 kB / 438.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.3003, allocations: 185.8 kB / 438.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.2e-05/0.3004, allocations: 158.9 kB / 438.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.3004, allocations: 158.7 kB / 438.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.854e-05/0.3005, allocations: 101 kB / 439 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4e-05/0.3005, allocations: 75.28 kB / 439.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.225e-05/0.3006, allocations: 158.6 kB / 439.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.011e-05/0.3007, allocations: 150.6 kB / 439.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.784e-05/0.3008, allocations: 158.5 kB / 439.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003353/0.3011, allocations: 417 kB / 439.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.3012, allocations: 169.1 kB / 440.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.65e-05/0.3013, allocations: 88.02 kB / 440.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.3013, allocations: 79.28 kB / 440.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.3015, allocations: 47.36 kB / 440.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.685e-06/0.3015, allocations: 0 / 440.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001512/0.3016, allocations: 33.69 kB / 440.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.3017, allocations: 55.41 kB / 440.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.3018, allocations: 97.86 kB / 440.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.3018, allocations: 29.83 kB / 440.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.3019, allocations: 88.12 kB / 440.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.3019, allocations: 3.953 kB / 440.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3019, allocations: 13.72 kB / 440.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3021, allocations: 310.8 kB / 440.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.065e-05/0.3021, allocations: 4 kB / 440.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.809e-06/0.3021, allocations: 0 / 440.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.038e-05/0.3021, allocations: 16.86 kB / 440.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3021, allocations: 3.938 kB / 440.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.399e-05/0.3022, allocations: 41.62 kB / 441 MB, free: 14.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3022, allocations: 4 kB / 441 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.3022, allocations: 0 / 441 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.3022, allocations: 0 / 441 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.379e-05/0.3022, allocations: 4 kB / 441 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3022, allocations: 0 / 441 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.3023, allocations: 0 / 441 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.3023, allocations: 0 / 441 MB, free: 14.89 MB / 350.1 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 8.887e-05/0.3024, allocations: 113.8 kB / 441.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.3024, allocations: 4 kB / 441.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.3024, allocations: 11.09 kB / 441.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3024, allocations: 3.938 kB / 441.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3024, allocations: 0 / 441.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3024, allocations: 0 / 441.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.3025, allocations: 128.7 kB / 441.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3025, allocations: 192 / 441.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.096e-06/0.3026, allocations: 0 / 441.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.3026, allocations: 0 / 441.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3026, allocations: 11.98 kB / 441.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3026, allocations: 0 / 441.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3026, allocations: 3.938 kB / 441.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.371e-05/0.3026, allocations: 57.08 kB / 441.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-06/0.3026, allocations: 7.984 kB / 441.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.3027, allocations: 0 / 441.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.353e-05/0.3027, allocations: 4 kB / 441.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.3027, allocations: 4.031 kB / 441.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.3027, allocations: 0 / 441.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.692e-05/0.3027, allocations: 79.28 kB / 441.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3027, allocations: 0 / 441.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004735/0.3032, allocations: 159.5 kB / 441.6 MB, free: 14.25 MB / 350.1 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.00112/0.3043, allocations: 492.5 kB / 442 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.737e-05/0.3044, allocations: 7.984 kB / 442 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3044, allocations: 3.938 kB / 442.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.771e-06/0.3044, allocations: 0 / 442.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.3046, allocations: 14.69 kB / 442.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003191/0.3049, allocations: 124.8 kB / 442.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3052, allocations: 0.6729 MB / 442.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.3052, allocations: 15.44 kB / 442.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3052, allocations: 3.938 kB / 442.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of Templates: time 0.006393/0.3116, allocations: 3.393 MB / 446.3 MB, free: 9.535 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.75715093803592]