Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.92 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2658, allocations: 52.14 MB / 420.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002307/0.2681, allocations: 1.199 MB / 422 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.2714, allocations: 2.046 MB / 424.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.481e-05/0.2714, allocations: 0 / 424.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.944e-05/0.2714, allocations: 3.938 kB / 424.1 MB, free: 11.84 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001137/0.2725, allocations: 438.6 kB / 424.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.47e-05/0.2726, allocations: 4 kB / 424.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.456e-05/0.2726, allocations: 7.938 kB / 424.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.355e-05/0.2726, allocations: 0 / 424.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.279e-05/0.2727, allocations: 11.92 kB / 424.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.2729, allocations: 10.95 kB / 424.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.2729, allocations: 0 / 424.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000732/0.2737, allocations: 483.5 kB / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.2737, allocations: 0 / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.915e-05/0.2737, allocations: 11.88 kB / 425 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.2742, allocations: 336.5 kB / 425.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2742, allocations: 4 kB / 425.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2742, allocations: 0 / 425.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2742, allocations: 0 / 425.4 MB, free: 10.56 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.0005106/0.2747, allocations: 410.6 kB / 425.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2748, allocations: 8.031 kB / 425.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.078e-05/0.2748, allocations: 76.22 kB / 425.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.2751, allocations: 255.6 kB / 426.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.763e-05/0.2752, allocations: 154.9 kB / 426.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.2753, allocations: 154.7 kB / 426.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.947e-05/0.2754, allocations: 104.9 kB / 426.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.436e-05/0.2755, allocations: 75.28 kB / 426.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.58e-05/0.2755, allocations: 154.6 kB / 426.7 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.2757, allocations: 150.6 kB / 426.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.849e-05/0.2757, allocations: 162.6 kB / 427 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.2762, allocations: 441.9 kB / 427.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.2763, allocations: 177.1 kB / 427.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.2763, allocations: 84.08 kB / 427.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.666e-05/0.2764, allocations: 79.28 kB / 427.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.2766, allocations: 47.34 kB / 427.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.294e-06/0.2766, allocations: 0 / 427.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.2767, allocations: 33.64 kB / 427.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.2768, allocations: 59.45 kB / 427.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.2769, allocations: 97.84 kB / 428 MB, free: 7.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2769, allocations: 29.83 kB / 428.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.277, allocations: 88.08 kB / 428.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.277, allocations: 4 kB / 428.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.277, allocations: 13.72 kB / 428.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2772, allocations: 314.8 kB / 428.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.2772, allocations: 0 / 428.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.2772, allocations: 4 kB / 428.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.596e-05/0.2773, allocations: 12.92 kB / 428.5 MB, free: 7.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2773, allocations: 0 / 428.5 MB, free: 7.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.99e-05/0.2773, allocations: 41.58 kB / 428.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2773, allocations: 4 kB / 428.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2773, allocations: 192 / 428.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2774, allocations: 0 / 428.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.07e-05/0.2774, allocations: 0 / 428.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.2774, allocations: 7.984 kB / 428.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.2774, allocations: 3.984 kB / 428.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.2774, allocations: 0 / 428.5 MB, free: 7.145 MB / 334.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 0.0001042/0.2775, allocations: 117.8 kB / 428.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.2775, allocations: 7.953 kB / 428.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.2776, allocations: 7.125 kB / 428.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2776, allocations: 0 / 428.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2776, allocations: 0 / 428.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2776, allocations: 0 / 428.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.2777, allocations: 153.6 kB / 428.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2777, allocations: 0 / 428.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.126e-06/0.2777, allocations: 0 / 428.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2777, allocations: 0 / 428.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.2777, allocations: 4 kB / 428.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2777, allocations: 0 / 428.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2777, allocations: 0 / 428.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.138e-05/0.2778, allocations: 69 kB / 428.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.2779, allocations: 77.11 kB / 429 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.2779, allocations: 0 / 429 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.645e-05/0.2779, allocations: 4 kB / 429 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.66e-05/0.2779, allocations: 8.016 kB / 429 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/0.2779, allocations: 4 kB / 429 MB, free: 6.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.323e-05/0.278, allocations: 83.28 kB / 429.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.278, allocations: 7.875 kB / 429.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000509/0.2785, allocations: 127.6 kB / 429.2 MB, free: 6.391 MB / 334.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.001235/0.2797, allocations: 477.6 kB / 429.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.288e-05/0.2798, allocations: 7.938 kB / 429.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2798, allocations: 0 / 429.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.53e-06/0.2798, allocations: 4 kB / 429.7 MB, free: 5.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.28, allocations: 3.938 kB / 429.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.2803, allocations: 122.8 kB / 429.8 MB, free: 5.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.2807, allocations: 0.6805 MB / 430.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.082e-05/0.2808, allocations: 4 kB / 430.5 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.2808, allocations: 15.42 kB / 430.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of SimCode: time 9.01e-07/0.2808, allocations: 0 / 430.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of Templates: time 0.00719/0.288, allocations: 2.77 MB / 433.3 MB, free: 2.332 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.586408115923405]