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.001843/0.001843, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.00193/0.00193, allocations: 165.3 kB / 24.28 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.567/1.567, allocations: 177.1 MB / 204.6 MB, free: 5.621 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.3526/0.3526, allocations: 32.8 MB / 293.9 MB, free: 1.176 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 1.243e-06/1.243e-06, allocations: 0 / 375.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.629e-05, allocations: 9.266 kB / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001517/0.001543, allocations: 0.4891 MB / 375.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.002868, allocations: 0.8807 MB / 376.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.163e-05/0.00289, allocations: 0 / 376.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.319e-05/0.002903, allocations: 3.938 kB / 376.6 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.00307, allocations: 11.98 kB / 376.6 MB, free: 3.609 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.0006315/0.003702, allocations: 68.08 kB / 376.7 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.697e-05/0.003759, allocations: 8 kB / 376.7 MB, free: 3.543 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.626e-05/0.003785, allocations: 3.984 kB / 376.7 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.739e-05/0.003812, allocations: 0 / 376.7 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.13e-05/0.003884, allocations: 11.92 kB / 376.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.003892, allocations: 0 / 376.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.004038, allocations: 47.95 kB / 376.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-06/0.004045, allocations: 0 / 376.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.591e-05/0.004061, allocations: 0 / 376.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.004235, allocations: 67.8 kB / 376.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.004237, allocations: 0 / 376.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004238, allocations: 0 / 376.8 MB, free: 3.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.004241, allocations: 0 / 376.8 MB, free: 3.414 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.0004056/0.004647, allocations: 381.9 kB / 377.2 MB, free: 2.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.004687, allocations: 8.031 kB / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.004725, allocations: 8.922 kB / 377.2 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.004832, allocations: 104.6 kB / 377.3 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-06/0.004841, allocations: 384 / 377.3 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-06/0.004847, allocations: 4.312 kB / 377.3 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.83e-05/0.004946, allocations: 63.95 kB / 377.4 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.004952, allocations: 192 / 377.4 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.004958, allocations: 384 / 377.4 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.004962, allocations: 384 / 377.4 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.709e-05/0.004999, allocations: 41.58 kB / 377.4 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.005134, allocations: 108.7 kB / 377.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.67e-05/0.00521, allocations: 56.75 kB / 377.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/0.005249, allocations: 41.45 kB / 377.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.153e-06/0.005257, allocations: 0 / 377.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.005313, allocations: 63.09 kB / 377.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.12e-07/0.005314, allocations: 0 / 377.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002088/0.005523, allocations: 126.7 kB / 377.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.005585, allocations: 77.11 kB / 377.9 MB, free: 2.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.005719, allocations: 157.9 kB / 378 MB, free: 1.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.005737, allocations: 25.7 kB / 378.1 MB, free: 1.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.005809, allocations: 130.9 kB / 378.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.005821, allocations: 3.953 kB / 378.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.005854, allocations: 15.38 kB / 378.2 MB, free: 1.777 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.006117, allocations: 496.1 kB / 378.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.768e-05/0.006145, allocations: 29.69 kB / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.507e-05/0.00617, allocations: 29.95 kB / 378.8 MB, free: 1.211 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.86e-05/0.006229, allocations: 67.09 kB / 378.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.00623, allocations: 4 kB / 378.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001036/0.006334, allocations: 93.03 kB / 378.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.006367, allocations: 29.7 kB / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.006371, allocations: 0 / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.006381, allocations: 0 / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.006381, allocations: 0 / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.006385, allocations: 0 / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.006401, allocations: 7.938 kB / 379 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.006406, allocations: 4.094 kB / 379 MB, free: 0.9688 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.000136/0.006542, allocations: 186.3 kB / 379.1 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-06/0.006552, allocations: 0 / 379.1 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-06/0.006562, allocations: 6.984 kB / 379.1 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.006563, allocations: 0 / 379.1 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.006565, allocations: 3.938 kB / 379.1 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.006569, allocations: 3.938 kB / 379.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.439e-05/0.006664, allocations: 108.6 kB / 379.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.006667, allocations: 4 kB / 379.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.006667, allocations: 0 / 379.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.006669, allocations: 4 kB / 379.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.006682, allocations: 7.984 kB / 379.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.006683, allocations: 0 / 379.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.006684, allocations: 0 / 379.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.006832, allocations: 135.7 kB / 379.4 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-06/0.006838, allocations: 4 kB / 379.4 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.00685, allocations: 3.984 kB / 379.4 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-06/0.006859, allocations: 0 / 379.4 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.143e-05/0.00687, allocations: 0 / 379.4 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.006872, allocations: 0 / 379.4 MB, free: 436 kB / 346.7 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.006939, allocations: 131.2 kB / 379.5 MB, free: 304 kB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006939, allocations: 0 / 379.5 MB, free: 304 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002081/0.007147, allocations: 19.88 kB / 379.6 MB, free: 284 kB / 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.0005845/0.007731, allocations: 194.4 kB / 379.8 MB, free: 120 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001612/0.007893, allocations: 126.4 kB / 379.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.007894, allocations: 0 / 379.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.299e-05/0.007967, allocations: 92.78 kB / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.008102, allocations: 0 / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002039/0.008306, allocations: 115.1 kB / 380.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.269e-05/0.008359, allocations: 63.47 kB / 380.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.633e-06/0.008365, allocations: 3.984 kB / 380.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.672e-05/0.008382, allocations: 12.5 kB / 380.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.008383, allocations: 0 / 380.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of Templates: time 0.003394/0.01178, allocations: 0.6773 MB / 380.8 MB, free: 14.93 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","/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.764383791014552]