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.001258/0.001258, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001298/0.001298, allocations: 161 kB / 24.56 MB, free: 4 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.04/1.04, allocations: 177.1 MB / 205 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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.2856/0.2856, allocations: 34.27 MB / 295.7 MB, free: 0.7734 MB / 266.7 MB " [Timeout remaining time 180] 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 1.663e-06/1.663e-06, allocations: 0 / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.879e-05, allocations: 2.312 kB / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00115/0.001179, allocations: 0.4892 MB / 378.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008893/0.002068, allocations: 0.9 MB / 379.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.523e-05/0.002093, allocations: 0 / 379.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.142e-05/0.002114, allocations: 3.938 kB / 379.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.002326, allocations: 11.92 kB / 379.4 MB, free: 1.266 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.0005401/0.002866, allocations: 70.88 kB / 379.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.464e-05/0.00292, allocations: 7.938 kB / 379.5 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.137e-05/0.002952, allocations: 3.984 kB / 379.5 MB, free: 1.199 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.36e-05/0.002985, allocations: 4 kB / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.757e-05/0.003023, allocations: 0 / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.077e-06/0.003032, allocations: 4 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.003137, allocations: 47.95 kB / 379.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.356e-06/0.003145, allocations: 0 / 379.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.113e-05/0.003166, allocations: 7.938 kB / 379.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.003332, allocations: 59.84 kB / 379.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.003334, allocations: 0 / 379.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.003336, allocations: 0 / 379.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.003341, allocations: 0 / 379.6 MB, free: 1.078 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.0003142/0.003655, allocations: 381.9 kB / 380 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.003696, allocations: 12.03 kB / 380 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.003736, allocations: 4.875 kB / 380 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.26e-05/0.003819, allocations: 108.6 kB / 380.1 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.003829, allocations: 4.375 kB / 380.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.003841, allocations: 384 / 380.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.862e-05/0.003929, allocations: 59.95 kB / 380.2 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.00394, allocations: 4.172 kB / 380.2 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.003948, allocations: 384 / 380.2 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.003957, allocations: 384 / 380.2 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.996e-05/0.003977, allocations: 33.64 kB / 380.2 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.359e-05/0.00407, allocations: 109 kB / 380.3 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.571e-05/0.004116, allocations: 60.73 kB / 380.4 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.237e-05/0.004138, allocations: 45.38 kB / 380.4 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.004143, allocations: 0 / 380.4 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.004178, allocations: 67.09 kB / 380.5 MB, free: 40 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.004179, allocations: 0 / 380.5 MB, free: 40 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002099/0.004389, allocations: 122.8 kB / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.004428, allocations: 81.05 kB / 380.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.37e-05/0.004501, allocations: 153.9 kB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.00451, allocations: 29.7 kB / 380.9 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.004542, allocations: 130.9 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.373e-05/0.004555, allocations: 4.25 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.502e-05/0.00458, allocations: 19.38 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.004707, allocations: 492.1 kB / 381.5 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.944e-05/0.004727, allocations: 29.69 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.537e-05/0.004742, allocations: 29.7 kB / 381.6 MB, free: 14.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.488e-05/0.004777, allocations: 63.09 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.004779, allocations: 0 / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.624e-05/0.004845, allocations: 89.05 kB / 381.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.004877, allocations: 37.69 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.004882, allocations: 4.094 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.0049, allocations: 0 / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.42e-06/0.004905, allocations: 4 kB / 381.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.004911, allocations: 0 / 381.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.004927, allocations: 7.938 kB / 381.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.004933, allocations: 0 / 381.8 MB, free: 14.62 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 7.412e-05/0.005007, allocations: 178.3 kB / 381.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-06/0.005013, allocations: 4 kB / 381.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.376e-05/0.005027, allocations: 7 kB / 381.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.005029, allocations: 3.984 kB / 381.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.005034, allocations: 4 kB / 382 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.005037, allocations: 3.938 kB / 382 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.577e-05/0.005093, allocations: 108.6 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.005094, allocations: 0 / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.005094, allocations: 0 / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-07/0.005095, allocations: 0 / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.005106, allocations: 0 / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.01e-07/0.005106, allocations: 0 / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.005107, allocations: 4 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.894e-05/0.005196, allocations: 135.7 kB / 382.2 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-06/0.005203, allocations: 3.938 kB / 382.2 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.005217, allocations: 4.031 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-06/0.005222, allocations: 4 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.354e-05/0.005236, allocations: 3.984 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-06/0.005237, allocations: 0 / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.954e-05/0.005267, allocations: 119.2 kB / 382.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005267, allocations: 0 / 382.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001468/0.005414, allocations: 23.88 kB / 382.4 MB, free: 13.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.0003567/0.00577, allocations: 211.5 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.005878, allocations: 114.5 kB / 382.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.00588, allocations: 4.062 kB / 382.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.455e-05/0.005915, allocations: 92.73 kB / 382.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.006027, allocations: 7.984 kB / 382.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001896/0.006216, allocations: 119.1 kB / 382.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.986e-05/0.006246, allocations: 51.36 kB / 382.9 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.006252, allocations: 0 / 382.9 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.46e-05/0.006266, allocations: 12.5 kB / 383 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006267, allocations: 0 / 383 MB, free: 13.27 MB / 362.7 MB Notification: Performance of Templates: time 0.002618/0.008885, allocations: 0.6797 MB / 383.6 MB, free: 12.59 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","",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.227789652068168]