Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009649/0.0009649, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1954/0.1954, allocations: 46.18 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002824, allocations: 8 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 63.56 MB / 483.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005281/0.1169, allocations: 207 kB / 483.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.118, allocations: 0.7605 MB / 484.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.08e-05/0.1181, allocations: 3.938 kB / 484.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.065e-05/0.1181, allocations: 0 / 484.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.1182, allocations: 7.938 kB / 484.7 MB, free: 3.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005605/0.1188, allocations: 54.7 kB / 484.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.094e-05/0.1188, allocations: 3.938 kB / 484.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.223e-05/0.1189, allocations: 0 / 484.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.736e-05/0.1189, allocations: 4 kB / 484.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.995e-05/0.119, allocations: 0 / 484.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-06/0.119, allocations: 0 / 484.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.1191, allocations: 47.95 kB / 484.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.1191, allocations: 7.984 kB / 484.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.1192, allocations: 25.7 kB / 484.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.022e-05/0.1193, allocations: 39.88 kB / 484.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1193, allocations: 0 / 484.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1193, allocations: 4 kB / 484.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1193, allocations: 0 / 484.9 MB, free: 2.992 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.0002791/0.1196, allocations: 349.3 kB / 485.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1196, allocations: 8.875 kB / 485.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.1196, allocations: 4.922 kB / 485.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.248e-05/0.1197, allocations: 164.3 kB / 485.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.1198, allocations: 4.375 kB / 485.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-06/0.1198, allocations: 384 / 485.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.46e-05/0.1199, allocations: 30.27 kB / 485.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.1199, allocations: 192 / 485.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.1199, allocations: 7.938 kB / 485.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.1199, allocations: 0 / 485.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.519e-05/0.1199, allocations: 0 / 485.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001181/0.12, allocations: 149.7 kB / 485.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.158e-05/0.1201, allocations: 22.55 kB / 485.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.366e-05/0.1201, allocations: 4.859 kB / 485.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-06/0.1201, allocations: 4 kB / 485.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.1202, allocations: 60.33 kB / 485.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.1202, allocations: 0 / 485.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.1203, allocations: 71.33 kB / 485.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.1204, allocations: 77.11 kB / 485.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.38e-05/0.1205, allocations: 93.8 kB / 485.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.1205, allocations: 29.7 kB / 485.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.1205, allocations: 84.39 kB / 486 MB, free: 1.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.1205, allocations: 0 / 486 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/0.1206, allocations: 17.66 kB / 486 MB, free: 1.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.1207, allocations: 314.8 kB / 486.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.003e-05/0.1207, allocations: 0 / 486.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.314e-06/0.1207, allocations: 7.938 kB / 486.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.024e-05/0.1207, allocations: 60.27 kB / 486.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1208, allocations: 0 / 486.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.523e-05/0.1208, allocations: 71.38 kB / 486.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.1209, allocations: 33.69 kB / 486.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1209, allocations: 3.938 kB / 486.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.1209, allocations: 0 / 486.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1209, allocations: 3.938 kB / 486.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.1209, allocations: 0 / 486.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.1209, allocations: 4 kB / 486.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.1209, allocations: 0 / 486.5 MB, free: 1.07 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 8.287e-05/0.121, allocations: 131.5 kB / 486.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-06/0.121, allocations: 8.031 kB / 486.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.1211, allocations: 7.062 kB / 486.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1211, allocations: 7.969 kB / 486.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1211, allocations: 0 / 486.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.1211, allocations: 0 / 486.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.801e-05/0.1212, allocations: 142 kB / 486.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1212, allocations: 4 kB / 486.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.1212, allocations: 0 / 486.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1212, allocations: 0 / 486.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.1212, allocations: 7.938 kB / 486.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1212, allocations: 7.984 kB / 486.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1212, allocations: 4 kB / 486.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.069e-05/0.1213, allocations: 86.84 kB / 486.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.751e-05/0.1214, allocations: 81.05 kB / 487 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.1214, allocations: 11.92 kB / 487 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-06/0.1214, allocations: 0 / 487 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.1214, allocations: 0 / 487 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1214, allocations: 0 / 487 MB, free: 488 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.931e-05/0.1214, allocations: 79.31 kB / 487.1 MB, free: 408 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1215, allocations: 0 / 487.1 MB, free: 408 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002081/0.1217, allocations: 20 kB / 487.1 MB, free: 388 kB / 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.0003535/0.122, allocations: 189.5 kB / 487.3 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.92e-05/0.1221, allocations: 63.41 kB / 487.4 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1221, allocations: 0 / 487.4 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.807e-05/0.1222, allocations: 55.41 kB / 487.4 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.1223, allocations: 0 / 487.4 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001814/0.1225, allocations: 112.6 kB / 487.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.1227, allocations: 0.6731 MB / 488.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.687e-06/0.1227, allocations: 7.438 kB / 488.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1227, allocations: 4 kB / 488.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of Templates: time 0.002183/0.1249, allocations: 0.8183 MB / 489 MB, free: 14.4 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches