Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002472/0.002472, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002865/0.002865, allocations: 161.3 kB / 24.27 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.562/1.562, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3859/0.3859, allocations: 34.26 MB / 295.3 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.609e-06/4.609e-06, allocations: 4 kB / 377.2 MB, free: 3.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.737e-05/3.198e-05, allocations: 9.266 kB / 377.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00156/0.001592, allocations: 496.9 kB / 377.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.002935, allocations: 0.8885 MB / 378.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.237e-05/0.002958, allocations: 0 / 378.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.00297, allocations: 0 / 378.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.003167, allocations: 11.94 kB / 378.6 MB, free: 1.637 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0006589/0.003826, allocations: 68.39 kB / 378.7 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.845e-05/0.003875, allocations: 7.938 kB / 378.7 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.097e-05/0.003906, allocations: 4 kB / 378.7 MB, free: 1.566 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.285e-05/0.003938, allocations: 3.984 kB / 378.7 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.363e-05/0.004022, allocations: 0 / 378.7 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.759e-06/0.004032, allocations: 0 / 378.7 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.004177, allocations: 51.94 kB / 378.8 MB, free: 1.512 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-06/0.004184, allocations: 0 / 378.8 MB, free: 1.512 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.004201, allocations: 4 kB / 378.8 MB, free: 1.508 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.004375, allocations: 59.81 kB / 378.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.004378, allocations: 0 / 378.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004378, allocations: 0 / 378.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.004381, allocations: 0 / 378.8 MB, free: 1.449 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.0004412/0.004823, allocations: 385.9 kB / 379.2 MB, free: 1.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.004858, allocations: 8.031 kB / 379.2 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.004894, allocations: 4.875 kB / 379.2 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.00502, allocations: 112.6 kB / 379.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.005032, allocations: 384 / 379.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-06/0.005038, allocations: 384 / 379.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.597e-05/0.005134, allocations: 55.97 kB / 379.4 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.005143, allocations: 4.188 kB / 379.4 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.00515, allocations: 384 / 379.4 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-06/0.005153, allocations: 384 / 379.4 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.863e-05/0.005191, allocations: 37.64 kB / 379.4 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.005329, allocations: 108.6 kB / 379.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.335e-05/0.005412, allocations: 60.73 kB / 379.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.723e-05/0.005449, allocations: 37.39 kB / 379.6 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.005457, allocations: 0 / 379.6 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.096e-05/0.005518, allocations: 67.16 kB / 379.7 MB, free: 428 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.005519, allocations: 0 / 379.7 MB, free: 428 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002569/0.005776, allocations: 118.8 kB / 379.8 MB, free: 284 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.005843, allocations: 85.05 kB / 379.9 MB, free: 180 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.00598, allocations: 157.9 kB / 380.1 MB, free: 4 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.006015, allocations: 29.64 kB / 380.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.006088, allocations: 130.9 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.006103, allocations: 3.953 kB / 380.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-05/0.006141, allocations: 23.36 kB / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003194/0.006461, allocations: 492.1 kB / 380.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.842e-05/0.006489, allocations: 29.7 kB / 380.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.771e-05/0.006517, allocations: 33.95 kB / 380.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.154e-05/0.006578, allocations: 63.09 kB / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.00658, allocations: 0 / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001057/0.006686, allocations: 97.02 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.006725, allocations: 33.7 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-06/0.006729, allocations: 0 / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.00674, allocations: 0 / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.006741, allocations: 0 / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.006745, allocations: 0 / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.006764, allocations: 7.938 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.006781, allocations: 8.094 kB / 381 MB, free: 14.99 MB / 362.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 0.0001334/0.006914, allocations: 182.3 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.006926, allocations: 4 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.874e-06/0.006934, allocations: 3 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.006938, allocations: 4 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.006941, allocations: 0 / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.006946, allocations: 3.938 kB / 381.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.007059, allocations: 108.6 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.00706, allocations: 0 / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.007065, allocations: 3.984 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.007066, allocations: 4 kB / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.007072, allocations: 0 / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.007073, allocations: 0 / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.007077, allocations: 3.984 kB / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.007233, allocations: 139.7 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-06/0.007237, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.007248, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.007256, allocations: 4 kB / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.00727, allocations: 0 / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.007273, allocations: 0 / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.858e-05/0.007341, allocations: 131.2 kB / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.007341, allocations: 0 / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000217/0.007558, allocations: 23.88 kB / 381.6 MB, free: 14.3 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.0006169/0.008175, allocations: 200.2 kB / 381.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001495/0.008325, allocations: 122.5 kB / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.008326, allocations: 0 / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.198e-05/0.008398, allocations: 92.73 kB / 382 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.008525, allocations: 4 kB / 382 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.008748, allocations: 119.1 kB / 382.1 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.946e-05/0.008818, allocations: 63.47 kB / 382.2 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.671e-06/0.008823, allocations: 0 / 382.2 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.008838, allocations: 8.5 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.008839, allocations: 0 / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of Templates: time 0.003493/0.01233, allocations: 0.6821 MB / 382.9 MB, free: 12.95 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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.881637837039307]