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.001487/0.001487, allocations: 95.92 kB / 17 MB, free: 6.355 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.001764/0.001764, allocations: 185.5 kB / 17.89 MB, free: 5.926 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.436/1.436, allocations: 223.3 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.234/0.234, allocations: 44.24 MB / 337.3 MB, free: 2.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003427, allocations: 13.16 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.122, allocations: 61.92 MB / 471.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006365/0.1227, allocations: 210.9 kB / 471.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1239, allocations: 0.7322 MB / 472.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.009e-05/0.1239, allocations: 3.938 kB / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.1239, allocations: 0 / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.1241, allocations: 7.938 kB / 472.5 MB, free: 12.77 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.000308/0.1244, allocations: 31.95 kB / 472.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.292e-05/0.1245, allocations: 11.94 kB / 472.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.1245, allocations: 0 / 472.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.099e-05/0.1245, allocations: 3.984 kB / 472.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.812e-05/0.1246, allocations: 8 kB / 472.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.167e-06/0.1246, allocations: 0 / 472.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.1248, allocations: 47.95 kB / 472.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-06/0.1248, allocations: 0 / 472.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.1248, allocations: 25.7 kB / 472.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.067e-05/0.1249, allocations: 39.94 kB / 472.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1249, allocations: 4 kB / 472.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1249, allocations: 0 / 472.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.1249, allocations: 7.938 kB / 472.7 MB, free: 12.59 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.0002865/0.1252, allocations: 341.1 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1253, allocations: 19.95 kB / 473.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/0.1253, allocations: 0 / 473.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.1254, allocations: 159.1 kB / 473.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1254, allocations: 0 / 473.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.1255, allocations: 0 / 473.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.143e-05/0.1255, allocations: 33.66 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1256, allocations: 4 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.1256, allocations: 3.938 kB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1256, allocations: 0 / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.828e-05/0.1256, allocations: 4 kB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/0.1258, allocations: 153.7 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.039e-05/0.1258, allocations: 22.55 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.1259, allocations: 4.859 kB / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.1259, allocations: 0 / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.1259, allocations: 64.22 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.1259, allocations: 0 / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001767/0.1261, allocations: 71.39 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.1262, allocations: 81.11 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.177e-05/0.1263, allocations: 89.86 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.1263, allocations: 25.7 kB / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.426e-05/0.1263, allocations: 80.39 kB / 473.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1263, allocations: 4 kB / 473.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.014e-06/0.1263, allocations: 0 / 473.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.1264, allocations: 322.8 kB / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.1264, allocations: 0 / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-06/0.1265, allocations: 0 / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.46e-05/0.1265, allocations: 29.7 kB / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1265, allocations: 0 / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.2e-05/0.1266, allocations: 63.31 kB / 474.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.1266, allocations: 37.78 kB / 474.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1266, allocations: 3.953 kB / 474.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1266, allocations: 0 / 474.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.1266, allocations: 3.938 kB / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.1267, allocations: 0 / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.1267, allocations: 4 kB / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1267, allocations: 0 / 474.3 MB, free: 10.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.217e-05/0.1268, allocations: 136.1 kB / 474.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.1268, allocations: 4 kB / 474.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-06/0.1268, allocations: 11.08 kB / 474.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1268, allocations: 3.953 kB / 474.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1268, allocations: 0 / 474.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1268, allocations: 3.984 kB / 474.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.238e-05/0.1269, allocations: 149.9 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1269, allocations: 3.938 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-07/0.1269, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1269, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.127, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.127, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.127, allocations: 7.938 kB / 474.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.963e-05/0.1271, allocations: 94.83 kB / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.558e-05/0.1271, allocations: 77.11 kB / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.1271, allocations: 7.938 kB / 474.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.089e-05/0.1271, allocations: 3.984 kB / 474.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/0.1272, allocations: 3.953 kB / 474.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.1272, allocations: 4 kB / 474.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.93e-05/0.1272, allocations: 79.31 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1272, allocations: 4 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.1275, allocations: 12 kB / 474.9 MB, free: 10.04 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003711/0.1278, allocations: 200.1 kB / 475.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.749e-05/0.1279, allocations: 59.41 kB / 475.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1279, allocations: 0 / 475.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.598e-05/0.128, allocations: 55.41 kB / 475.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.1281, allocations: 1.875 kB / 475.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002111/0.1283, allocations: 87.06 kB / 475.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.1286, allocations: 0.6731 MB / 476 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.114e-06/0.1286, allocations: 0 / 476 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.1286, allocations: 11.44 kB / 476 MB, free: 8.902 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1286, allocations: 0 / 476 MB, free: 8.902 MB / 350.1 MB Notification: Performance of Templates: time 0.002811/0.1315, allocations: 0.6012 MB / 476.6 MB, free: 8.305 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