Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.0009839/0.0009839, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.0009904/0.0009904, allocations: 165 kB / 24.56 MB, free: 12 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.014/1.014, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3211/0.3211, allocations: 32.81 MB / 294.3 MB, free: 1.273 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 376 MB, free: 4.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.047e-05/3.254e-05, allocations: 6.25 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001195/0.001227, allocations: 0.4958 MB / 376.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009158/0.002143, allocations: 0.9039 MB / 377.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.506e-05/0.002168, allocations: 0 / 377.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.002188, allocations: 3.938 kB / 377.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.002425, allocations: 4 kB / 377.4 MB, free: 3.277 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.003051, allocations: 74.08 kB / 377.5 MB, free: 3.211 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.305e-05/0.003114, allocations: 0 / 377.5 MB, free: 3.211 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.003152, allocations: 4 kB / 377.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.003188, allocations: 4 kB / 377.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.87e-05/0.003267, allocations: 7.969 kB / 377.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.003278, allocations: 0 / 377.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.0034, allocations: 51.95 kB / 377.5 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.00341, allocations: 3.938 kB / 377.5 MB, free: 3.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.003432, allocations: 4 kB / 377.5 MB, free: 3.137 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.003595, allocations: 59.8 kB / 377.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.003598, allocations: 0 / 377.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0036, allocations: 0 / 377.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.003604, allocations: 4 kB / 377.6 MB, free: 3.074 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000324/0.003928, allocations: 377.9 kB / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.003968, allocations: 12.03 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.004008, allocations: 0.9375 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.927e-05/0.004097, allocations: 108.6 kB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.004108, allocations: 4.375 kB / 378.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.004117, allocations: 4.359 kB / 378.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.189e-05/0.004209, allocations: 55.97 kB / 378.2 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.004217, allocations: 4.172 kB / 378.2 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-06/0.004226, allocations: 384 / 378.2 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.004232, allocations: 4.375 kB / 378.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.9e-05/0.004251, allocations: 33.58 kB / 378.2 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.839e-05/0.004349, allocations: 109 kB / 378.3 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.178e-05/0.004401, allocations: 64.73 kB / 378.4 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.331e-05/0.004424, allocations: 37.39 kB / 378.4 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-06/0.004429, allocations: 0 / 378.4 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.00447, allocations: 67.14 kB / 378.5 MB, free: 2.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.004471, allocations: 0 / 378.5 MB, free: 2.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001851/0.004656, allocations: 118.7 kB / 378.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.0047, allocations: 81.11 kB / 378.7 MB, free: 1.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.211e-05/0.004792, allocations: 162 kB / 378.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.004803, allocations: 29.7 kB / 378.9 MB, free: 1.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.004842, allocations: 126.9 kB / 379 MB, free: 1.465 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.00486, allocations: 0 / 379 MB, free: 1.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.004889, allocations: 19.38 kB / 379 MB, free: 1.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.005034, allocations: 492.1 kB / 379.5 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.676e-05/0.005061, allocations: 29.7 kB / 379.5 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.874e-05/0.005079, allocations: 29.7 kB / 379.5 MB, free: 0.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.143e-05/0.005131, allocations: 63.08 kB / 379.6 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.005133, allocations: 4.188 kB / 379.6 MB, free: 0.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.553e-05/0.005229, allocations: 89.05 kB / 379.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.005259, allocations: 33.7 kB / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.005265, allocations: 0 / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.005282, allocations: 3.984 kB / 379.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.779e-06/0.005287, allocations: 0 / 379.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.005293, allocations: 0 / 379.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.005309, allocations: 7.938 kB / 379.7 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.005319, allocations: 4 kB / 379.7 MB, free: 0.6328 MB / 346.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 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.854e-05/0.005408, allocations: 178.3 kB / 379.9 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.005415, allocations: 8.031 kB / 379.9 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.338e-05/0.005428, allocations: 3 kB / 379.9 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.005431, allocations: 0 / 379.9 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.005437, allocations: 0 / 379.9 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.005443, allocations: 3.938 kB / 379.9 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.929e-05/0.005512, allocations: 116.6 kB / 380 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.005513, allocations: 0 / 380 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.005516, allocations: 4 kB / 380 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.005518, allocations: 0 / 380 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.005524, allocations: 0 / 380 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.005525, allocations: 3.938 kB / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.005526, allocations: 8 kB / 380.1 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.272e-05/0.005619, allocations: 135.7 kB / 380.2 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-06/0.005624, allocations: 0 / 380.2 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.005639, allocations: 4 kB / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.19e-06/0.005644, allocations: 0 / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.408e-05/0.005659, allocations: 0 / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.00566, allocations: 0 / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of sorting global known variables: time 4.705e-05/0.005707, allocations: 123.2 kB / 380.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005707, allocations: 4 kB / 380.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001486/0.005856, allocations: 24 kB / 380.3 MB, free: 15.95 MB / 362.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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004058/0.006262, allocations: 198 kB / 380.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001106/0.006373, allocations: 122.4 kB / 380.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.006374, allocations: 0 / 380.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.382e-05/0.006408, allocations: 96.78 kB / 380.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000104/0.006512, allocations: 4 kB / 380.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001964/0.006708, allocations: 115 kB / 380.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.078e-05/0.006739, allocations: 51.36 kB / 380.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.162e-06/0.006745, allocations: 0 / 380.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.006761, allocations: 16.62 kB / 380.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.006762, allocations: 0 / 380.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of Templates: time 0.002881/0.009643, allocations: 0.7622 MB / 381.7 MB, free: 14.52 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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: 3.1880186051130295]