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.001979/0.001979, allocations: 84.34 kB / 20.95 MB, free: 3.449 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.0024/0.0024, allocations: 165.3 kB / 24.27 MB, free: 144 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.537/1.537, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.4438/0.4438, allocations: 32.8 MB / 293.9 MB, free: 1.168 MB / 266.7 MB " [Timeout remaining time 179] 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 1.492e-06/1.492e-06, allocations: 0 / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.949e-05, allocations: 9.625 kB / 375.2 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001495/0.001524, allocations: 0.4892 MB / 375.7 MB, free: 4.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.002867, allocations: 0.8885 MB / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.002892, allocations: 0 / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.002905, allocations: 0 / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.003089, allocations: 8 kB / 376.6 MB, free: 3.594 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.0006548/0.003744, allocations: 66.11 kB / 376.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.475e-05/0.003799, allocations: 7.984 kB / 376.7 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.825e-05/0.003827, allocations: 0 / 376.7 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.00386, allocations: 7.938 kB / 376.7 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.392e-05/0.003914, allocations: 0 / 376.7 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.847e-06/0.003922, allocations: 0 / 376.7 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.004068, allocations: 51.05 kB / 376.7 MB, free: 3.469 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.004086, allocations: 4 kB / 376.8 MB, free: 3.465 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.00412, allocations: 11.98 kB / 376.8 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.004298, allocations: 55.8 kB / 376.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.004301, allocations: 0 / 376.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004302, allocations: 0 / 376.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.004307, allocations: 0 / 376.8 MB, free: 3.398 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.0004219/0.004729, allocations: 284 kB / 377.1 MB, free: 3.082 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.004768, allocations: 8.031 kB / 377.1 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.00481, allocations: 0.9375 kB / 377.1 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.004933, allocations: 109.7 kB / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.004946, allocations: 4.375 kB / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.004959, allocations: 4.359 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.005077, allocations: 59.97 kB / 377.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.005086, allocations: 4.125 kB / 377.3 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.587e-06/0.005095, allocations: 384 / 377.3 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.005099, allocations: 384 / 377.3 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.437e-05/0.005144, allocations: 33.62 kB / 377.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.005271, allocations: 97.33 kB / 377.4 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.811e-05/0.005339, allocations: 48.3 kB / 377.5 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.578e-05/0.005375, allocations: 30.56 kB / 377.5 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.005383, allocations: 4 kB / 377.5 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.214e-05/0.005445, allocations: 64.33 kB / 377.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.041e-06/0.005446, allocations: 0 / 377.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002358/0.005682, allocations: 118.7 kB / 377.7 MB, free: 2.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.005747, allocations: 77.11 kB / 377.7 MB, free: 2.277 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.359e-05/0.005841, allocations: 101.8 kB / 377.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.005861, allocations: 25.7 kB / 377.9 MB, free: 2.137 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.005905, allocations: 80.14 kB / 377.9 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.005923, allocations: 3.953 kB / 378 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.005963, allocations: 13.97 kB / 378 MB, free: 2.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.006138, allocations: 318.8 kB / 378.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.65e-05/0.006164, allocations: 25.7 kB / 378.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.009e-05/0.006194, allocations: 33.7 kB / 378.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.232e-05/0.006257, allocations: 64.2 kB / 378.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.006258, allocations: 0 / 378.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001024/0.006361, allocations: 89.09 kB / 378.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.006399, allocations: 29.7 kB / 378.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.006403, allocations: 0 / 378.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.00642, allocations: 0 / 378.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.006421, allocations: 8.094 kB / 378.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.006425, allocations: 0 / 378.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.006441, allocations: 3.938 kB / 378.5 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.006451, allocations: 4 kB / 378.5 MB, free: 1.406 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 0.000105/0.006556, allocations: 135.5 kB / 378.7 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.006567, allocations: 3.984 kB / 378.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.006575, allocations: 6.938 kB / 378.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.006577, allocations: 0 / 378.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.00658, allocations: 4 kB / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.006584, allocations: 3.938 kB / 378.7 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.099e-05/0.006675, allocations: 97.33 kB / 378.8 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.006676, allocations: 3.938 kB / 378.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-06/0.006681, allocations: 4 kB / 378.8 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.006684, allocations: 4 kB / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.00669, allocations: 0 / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.006691, allocations: 0 / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.006694, allocations: 3.984 kB / 378.8 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.00684, allocations: 116.5 kB / 378.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-06/0.006848, allocations: 4 kB / 378.9 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.006861, allocations: 3.984 kB / 378.9 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-06/0.00687, allocations: 32 / 378.9 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.441e-05/0.006884, allocations: 4 kB / 378.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.006891, allocations: 4 kB / 378.9 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.664e-05/0.006938, allocations: 79.28 kB / 379 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006938, allocations: 0 / 379 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002377/0.007176, allocations: 19.88 kB / 379 MB, free: 0.8438 MB / 346.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.0004927/0.007668, allocations: 197.3 kB / 379.2 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.007821, allocations: 118.8 kB / 379.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.007823, allocations: 0 / 379.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.072e-05/0.007884, allocations: 81.09 kB / 379.4 MB, free: 452 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.008021, allocations: 12.06 kB / 379.4 MB, free: 440 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002139/0.008234, allocations: 113.4 kB / 379.5 MB, free: 292 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.438e-05/0.008299, allocations: 59.34 kB / 379.6 MB, free: 212 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.618e-06/0.008303, allocations: 0 / 379.6 MB, free: 212 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.008318, allocations: 8.5 kB / 379.6 MB, free: 204 kB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.008318, allocations: 3.938 kB / 379.6 MB, free: 200 kB / 346.7 MB Notification: Performance of Templates: time 0.003353/0.01167, allocations: 0.675 MB / 380.3 MB, free: 15.53 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.85236130701378]