Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009776/0.0009779, allocations: 96.39 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 177.1 kB / 16.58 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.399/0.399, allocations: 43.56 MB / 314.6 MB, free: 9.027 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006133/0.0006135, allocations: 12 kB / 383.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1368, allocations: 58.88 MB / 442.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005839/0.1374, allocations: 216.4 kB / 443 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1384, allocations: 0.7377 MB / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.749e-05/0.1384, allocations: 0 / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.906e-06/0.1385, allocations: 0 / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.1386, allocations: 0 / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1388, allocations: 39.91 kB / 443.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.949e-05/0.1389, allocations: 7.984 kB / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.867e-05/0.1389, allocations: 0 / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.663e-05/0.1389, allocations: 7.984 kB / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.786e-05/0.139, allocations: 8 kB / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.139, allocations: 0 / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.1391, allocations: 47.89 kB / 443.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.292e-06/0.1391, allocations: 3.938 kB / 443.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.309e-05/0.1392, allocations: 25.7 kB / 443.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.613e-05/0.1392, allocations: 31.95 kB / 443.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1393, allocations: 4 kB / 443.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1393, allocations: 0 / 443.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.1393, allocations: 0 / 443.9 MB, free: 12.12 MB / 382.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.0002768/0.1396, allocations: 357 kB / 444.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.1396, allocations: 8.031 kB / 444.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.1396, allocations: 4 kB / 444.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.888e-05/0.1397, allocations: 163 kB / 444.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-06/0.1397, allocations: 0 / 444.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-06/0.1398, allocations: 0 / 444.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.453e-05/0.1398, allocations: 37.62 kB / 444.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.759e-06/0.1398, allocations: 3.938 kB / 444.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-06/0.1398, allocations: 0 / 444.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-06/0.1399, allocations: 4 kB / 444.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.343e-05/0.1399, allocations: 4 kB / 444.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.14, allocations: 153.6 kB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.375e-05/0.14, allocations: 18.56 kB / 444.7 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.273e-05/0.1401, allocations: 8.953 kB / 444.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-06/0.1401, allocations: 0 / 444.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.506e-05/0.1401, allocations: 60.27 kB / 444.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 3.847e-06/0.1401, allocations: 3.984 kB / 444.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001331/0.1403, allocations: 67.34 kB / 444.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1403, allocations: 85.03 kB / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1404, allocations: 93.86 kB / 445 MB, free: 10.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1404, allocations: 25.7 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.531e-05/0.1405, allocations: 80.14 kB / 445.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.036e-05/0.1405, allocations: 288 / 445.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-06/0.1405, allocations: 256 / 445.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1406, allocations: 322.8 kB / 445.4 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.592e-06/0.1406, allocations: 4 kB / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-06/0.1406, allocations: 0 / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.921e-05/0.1407, allocations: 25.7 kB / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1407, allocations: 4 kB / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.131e-05/0.1408, allocations: 63.33 kB / 445.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.1408, allocations: 33.7 kB / 445.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-06/0.1408, allocations: 0 / 445.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.166e-06/0.1408, allocations: 4.094 kB / 445.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1408, allocations: 0 / 445.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.1408, allocations: 0 / 445.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.335e-05/0.1409, allocations: 0 / 445.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.1409, allocations: 4 kB / 445.5 MB, free: 10.26 MB / 382.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.941e-05/0.141, allocations: 152.4 kB / 445.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-06/0.141, allocations: 0 / 445.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.017e-06/0.141, allocations: 7.125 kB / 445.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.141, allocations: 0 / 445.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.141, allocations: 4 kB / 445.7 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.141, allocations: 0 / 445.7 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.616e-05/0.1411, allocations: 149.6 kB / 445.8 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1411, allocations: 0 / 445.8 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.245e-06/0.1411, allocations: 4 kB / 445.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1411, allocations: 0 / 445.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.1411, allocations: 0 / 445.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1411, allocations: 3.938 kB / 445.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1412, allocations: 0 / 445.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.867e-05/0.1413, allocations: 102.7 kB / 445.9 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.16e-05/0.1413, allocations: 77.11 kB / 446 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.1413, allocations: 0 / 446 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.252e-05/0.1413, allocations: 4 kB / 446 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-06/0.1413, allocations: 3.938 kB / 446 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.1413, allocations: 0 / 446 MB, free: 9.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.085e-05/0.1414, allocations: 79.28 kB / 446.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1414, allocations: 0 / 446.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.1416, allocations: 28.11 kB / 446.1 MB, free: 9.547 MB / 382.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.0003134/0.1419, allocations: 169.8 kB / 446.3 MB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.63e-05/0.142, allocations: 67.34 kB / 446.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.142, allocations: 0 / 446.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.422e-05/0.1421, allocations: 59.39 kB / 446.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.1422, allocations: 4 kB / 446.4 MB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001419/0.1423, allocations: 82.62 kB / 446.5 MB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1426, allocations: 0.6731 MB / 447.2 MB, free: 8.426 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.248e-06/0.1426, allocations: 0 / 447.2 MB, free: 8.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.682e-06/0.1426, allocations: 7.438 kB / 447.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1426, allocations: 4.125 kB / 447.2 MB, free: 8.414 MB / 382.1 MB Notification: Performance of Templates: time 0.002567/0.1452, allocations: 0.6162 MB / 447.8 MB, free: 7.801 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches