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.001477/0.001477, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001577/0.001577, allocations: 161.7 kB / 24.27 MB, free: 172 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.605/1.605, allocations: 177.1 MB / 204.6 MB, free: 5.586 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 2.204e-06/2.204e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.461e-05/3.682e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003362/0.003399, allocations: 1.23 MB / 273.5 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005064/0.008462, allocations: 2.1 MB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.753e-05/0.00849, allocations: 3.938 kB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.39e-05/0.008514, allocations: 0 / 275.6 MB, free: 14.51 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.001943/0.01046, allocations: 470.2 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.826e-05/0.0105, allocations: 3.938 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.294e-05/0.01056, allocations: 15.92 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.683e-05/0.0106, allocations: 4 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.82e-05/0.01065, allocations: 11.92 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.042e-05/0.01074, allocations: 4 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.01076, allocations: 0 / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.0119, allocations: 487.3 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.01192, allocations: 3.938 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.01195, allocations: 3.984 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009534/0.0129, allocations: 470.8 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.01291, allocations: 0 / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.01291, allocations: 4 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.01292, allocations: 3.938 kB / 277.1 MB, free: 13.05 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.0006852/0.0136, allocations: 345.4 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.01366, allocations: 8.031 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.01377, allocations: 88.17 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.014, allocations: 185.1 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.0141, allocations: 150.9 kB / 277.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.01421, allocations: 150.9 kB / 278 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.01433, allocations: 105.5 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.669e-05/0.01438, allocations: 79.22 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.01449, allocations: 150.6 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.0146, allocations: 158.6 kB / 278.4 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.01471, allocations: 154.5 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.01515, allocations: 397.6 kB / 279 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.0153, allocations: 177.1 kB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/0.01538, allocations: 80.14 kB / 279.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.01543, allocations: 75.28 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.01566, allocations: 47.34 kB / 279.4 MB, free: 10.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.424e-06/0.01566, allocations: 0 / 279.4 MB, free: 10.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001904/0.01585, allocations: 37.64 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.01592, allocations: 59.53 kB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.01605, allocations: 101.8 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.01608, allocations: 25.7 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.01615, allocations: 84.14 kB / 279.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.01617, allocations: 7.922 kB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.01621, allocations: 13.72 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.01644, allocations: 310.8 kB / 280 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.788e-05/0.01646, allocations: 0 / 280 MB, free: 9.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.01646, allocations: 0 / 280 MB, free: 9.949 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.944e-05/0.0165, allocations: 16.84 kB / 280 MB, free: 9.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.0165, allocations: 4.062 kB / 280 MB, free: 9.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.749e-05/0.01659, allocations: 37.66 kB / 280 MB, free: 9.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.01661, allocations: 4 kB / 280 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.01662, allocations: 3.938 kB / 280 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.01664, allocations: 3.938 kB / 280.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.772e-05/0.01666, allocations: 3.938 kB / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.01667, allocations: 0 / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.808e-05/0.0167, allocations: 4 kB / 280.1 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.0167, allocations: 0 / 280.1 MB, free: 9.863 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.0001266/0.01683, allocations: 113.9 kB / 280.2 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.761e-05/0.01685, allocations: 4 kB / 280.2 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.01688, allocations: 11.09 kB / 280.2 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.01689, allocations: 4 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.01689, allocations: 0 / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.0169, allocations: 0 / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.01705, allocations: 101.3 kB / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01705, allocations: 0 / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-06/0.01705, allocations: 0 / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.01706, allocations: 0 / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.01706, allocations: 0 / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.01707, allocations: 7.938 kB / 280.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01707, allocations: 4 kB / 280.3 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.01718, allocations: 57.08 kB / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-06/0.01719, allocations: 7.984 kB / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.0172, allocations: 0 / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.15e-05/0.01722, allocations: 3.938 kB / 280.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.01724, allocations: 0 / 280.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.01724, allocations: 0 / 280.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.117e-05/0.01732, allocations: 83.28 kB / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01732, allocations: 0 / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006968/0.01802, allocations: 155.5 kB / 280.6 MB, free: 9.266 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.001761/0.01978, allocations: 0.5283 MB / 281.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.273e-05/0.01985, allocations: 4 kB / 281.1 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01985, allocations: 0 / 281.1 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.989e-06/0.01986, allocations: 8.062 kB / 281.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.02009, allocations: 7.984 kB / 281.1 MB, free: 8.789 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.02043, allocations: 108.7 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.064e-05/0.02051, allocations: 59.34 kB / 281.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.098e-05/0.02055, allocations: 7.984 kB / 281.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.845e-05/0.0206, allocations: 16.5 kB / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.0206, allocations: 0 / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of Templates: time 0.01049/0.03108, allocations: 3.221 MB / 284.6 MB, free: 5.336 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] 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.591818694025278]