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.001457/0.001457, allocations: 109.3 kB / 18.39 MB, free: 4.758 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.001666/0.001666, allocations: 184.1 kB / 19.32 MB, free: 3.828 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.375/1.375, allocations: 222.9 MB / 243 MB, free: 15.15 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.2081/0.2081, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 70.23 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1161, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001664/0.1178, allocations: 487.9 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.119, allocations: 0.7761 MB / 471.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.119, allocations: 0 / 471.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.119, allocations: 4 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.1192, allocations: 15.94 kB / 472 MB, free: 12.4 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.0005926/0.1198, allocations: 53.52 kB / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.95e-05/0.1199, allocations: 0 / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.1199, allocations: 4 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.723e-05/0.1199, allocations: 7.922 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.12, allocations: 7.984 kB / 472 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-06/0.1201, allocations: 0 / 472 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.1202, allocations: 55.95 kB / 472.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.1202, allocations: 0 / 472.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.821e-05/0.1202, allocations: 0 / 472.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1204, allocations: 55.88 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1204, allocations: 0 / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1204, allocations: 0 / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1204, allocations: 0 / 472.1 MB, free: 12.22 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.0003953/0.1208, allocations: 356.2 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1208, allocations: 15.97 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.1209, allocations: 0.9375 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.121, allocations: 164.4 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.121, allocations: 384 / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.121, allocations: 8.359 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.365e-05/0.1211, allocations: 30.27 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1211, allocations: 192 / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1211, allocations: 3.938 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1212, allocations: 0 / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.686e-05/0.1212, allocations: 4 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001274/0.1213, allocations: 149.7 kB / 472.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.111e-05/0.1214, allocations: 22.55 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.396e-05/0.1214, allocations: 8.859 kB / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.1214, allocations: 0 / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.1214, allocations: 56.27 kB / 472.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1214, allocations: 0 / 472.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.1216, allocations: 75.38 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.1217, allocations: 85.05 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.969e-05/0.1217, allocations: 90.08 kB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.1218, allocations: 33.67 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.528e-05/0.1218, allocations: 80.14 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.55e-05/0.1218, allocations: 3.906 kB / 473.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.1219, allocations: 17.72 kB / 473.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.122, allocations: 314.8 kB / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.153e-05/0.122, allocations: 0 / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.122, allocations: 7.984 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.154e-05/0.1221, allocations: 64.33 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1221, allocations: 0 / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.679e-05/0.1221, allocations: 63.41 kB / 473.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.1222, allocations: 33.64 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1222, allocations: 7.922 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.1222, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.1222, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1222, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.426e-05/0.1222, allocations: 4 kB / 473.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1223, allocations: 0 / 473.8 MB, free: 10.28 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 7.953e-05/0.1223, allocations: 135.6 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1224, allocations: 4 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.342e-05/0.1224, allocations: 11.02 kB / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.71e-07/0.1224, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1224, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1224, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.147e-05/0.1225, allocations: 149.7 kB / 474.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1225, allocations: 0 / 474.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.345e-06/0.1225, allocations: 4 kB / 474.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1225, allocations: 4 kB / 474.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.1225, allocations: 3.938 kB / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1225, allocations: 0 / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1225, allocations: 0 / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.545e-05/0.1226, allocations: 98.77 kB / 474.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.1227, allocations: 77.11 kB / 474.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.1227, allocations: 7.938 kB / 474.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.1227, allocations: 0 / 474.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.726e-05/0.1227, allocations: 8.016 kB / 474.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1227, allocations: 0 / 474.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.332e-05/0.1228, allocations: 79.28 kB / 474.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1228, allocations: 0 / 474.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002069/0.123, allocations: 16 kB / 474.4 MB, free: 9.586 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.0003556/0.1234, allocations: 198.5 kB / 474.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.1235, allocations: 63.34 kB / 474.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1235, allocations: 0 / 474.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.374e-05/0.1235, allocations: 59.47 kB / 474.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1237, allocations: 4 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.1239, allocations: 88.86 kB / 474.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1241, allocations: 0.669 MB / 475.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.57e-06/0.1241, allocations: 0 / 475.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.849e-06/0.1242, allocations: 7.438 kB / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1242, allocations: 0 / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of Templates: time 0.002652/0.1268, allocations: 0.6523 MB / 476.1 MB, free: 7.805 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches