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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002/0.002, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2028/0.2028, allocations: 44.18 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 65.23 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1102, allocations: 60.82 MB / 469.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002035/0.1123, allocations: 483.6 kB / 469.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1138, allocations: 0.7838 MB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.899e-05/0.1138, allocations: 0 / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.1139, allocations: 0 / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.1141, allocations: 4 kB / 470.5 MB, free: 13.14 MB / 350.1 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.0006502/0.1147, allocations: 51.81 kB / 470.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.158e-05/0.1148, allocations: 7.984 kB / 470.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.26e-05/0.1149, allocations: 3.938 kB / 470.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.057e-05/0.1149, allocations: 8 kB / 470.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.436e-05/0.115, allocations: 4 kB / 470.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.115, allocations: 4 kB / 470.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1151, allocations: 51.89 kB / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-06/0.1151, allocations: 0 / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.1152, allocations: 0 / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.1153, allocations: 51.88 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1153, allocations: 0 / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1153, allocations: 0 / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1153, allocations: 0 / 470.7 MB, free: 12.96 MB / 350.1 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.0003441/0.1157, allocations: 357.3 kB / 471 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1157, allocations: 12.03 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.1158, allocations: 4.938 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.1159, allocations: 160.4 kB / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.116, allocations: 4.375 kB / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.116, allocations: 384 / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.872e-05/0.1161, allocations: 34.25 kB / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1161, allocations: 192 / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1161, allocations: 3.938 kB / 471.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1161, allocations: 0 / 471.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.355e-05/0.1161, allocations: 15.86 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.1163, allocations: 149.7 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.793e-05/0.1164, allocations: 18.56 kB / 471.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.1164, allocations: 8.953 kB / 471.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.1164, allocations: 0 / 471.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.1165, allocations: 56.27 kB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1165, allocations: 0 / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000253/0.1167, allocations: 75.28 kB / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.1168, allocations: 81.09 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.1169, allocations: 93.86 kB / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.117, allocations: 25.7 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.117, allocations: 80.14 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.1171, allocations: 7.844 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.1171, allocations: 13.72 kB / 471.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.1174, allocations: 319.1 kB / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.525e-05/0.1174, allocations: 0 / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-06/0.1174, allocations: 0 / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.804e-05/0.1175, allocations: 68.19 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1175, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001076/0.1176, allocations: 59.41 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.1177, allocations: 36.36 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1177, allocations: 3.938 kB / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1177, allocations: 4.094 kB / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1177, allocations: 0 / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.1177, allocations: 3.984 kB / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.997e-05/0.1177, allocations: 0 / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.1178, allocations: 0 / 472.3 MB, free: 11.02 MB / 350.1 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.0001236/0.1179, allocations: 139.5 kB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.1179, allocations: 0 / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.1179, allocations: 11.02 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1179, allocations: 4 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.118, allocations: 4 kB / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.118, allocations: 0 / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.1181, allocations: 146 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1181, allocations: 0 / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.1181, allocations: 0 / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1181, allocations: 4 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1181, allocations: 3.938 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1182, allocations: 0 / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1182, allocations: 3.938 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.1183, allocations: 94.83 kB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.1183, allocations: 77.11 kB / 472.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.1184, allocations: 11.88 kB / 472.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.489e-05/0.1184, allocations: 4 kB / 472.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.1184, allocations: 4 kB / 472.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.1184, allocations: 0 / 472.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.05e-05/0.1185, allocations: 79.27 kB / 472.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.1185, allocations: 0 / 472.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1188, allocations: 24.06 kB / 472.9 MB, free: 10.32 MB / 350.1 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.0005795/0.1194, allocations: 186.3 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.1195, allocations: 71.33 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1195, allocations: 0 / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.016e-05/0.1196, allocations: 55.41 kB / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001554/0.1198, allocations: 0 / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002396/0.12, allocations: 80.94 kB / 473.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.1204, allocations: 0.6768 MB / 474 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.294e-06/0.1205, allocations: 4.125 kB / 474 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.615e-05/0.1205, allocations: 7.438 kB / 474 MB, free: 9.188 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1205, allocations: 0 / 474 MB, free: 9.188 MB / 350.1 MB Notification: Performance of Templates: time 0.003109/0.1236, allocations: 0.6511 MB / 474.7 MB, free: 8.539 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (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) 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) Reference file matches