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.001185/0.001185, allocations: 96.14 kB / 15.87 MB, free: 16 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.001406/0.001405, allocations: 202.6 kB / 16.79 MB, free: 6.84 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.705/1.705, allocations: 205.1 MB / 222.6 MB, free: 4.77 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.4194/0.4194, allocations: 43.5 MB / 313.5 MB, free: 8.477 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.001417/0.001418, allocations: 66.56 kB / 382 MB, free: 8.746 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002131/0.1387, allocations: 0.5425 MB / 440.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.1399, allocations: 0.7689 MB / 441.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.402e-05/0.14, allocations: 0 / 441.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.999e-05/0.14, allocations: 0 / 441.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.1401, allocations: 0 / 441.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005734/0.1407, allocations: 47.89 kB / 441.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.672e-05/0.1408, allocations: 0 / 441.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.1408, allocations: 4 kB / 441.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.006e-05/0.1408, allocations: 3.984 kB / 441.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.171e-05/0.1409, allocations: 11.94 kB / 441.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.663e-06/0.1409, allocations: 0 / 441.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1411, allocations: 55.89 kB / 441.2 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-06/0.1411, allocations: 0 / 441.2 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.1411, allocations: 4 kB / 441.3 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.1412, allocations: 39.94 kB / 441.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1412, allocations: 0 / 441.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1412, allocations: 0 / 441.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1413, allocations: 0 / 441.3 MB, free: 13.38 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.0003799/0.1416, allocations: 365.2 kB / 441.6 MB, free: 12.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1417, allocations: 12.03 kB / 441.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.615e-05/0.1417, allocations: 8.922 kB / 441.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.1419, allocations: 164.4 kB / 441.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.1419, allocations: 384 / 441.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.1419, allocations: 384 / 441.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.788e-05/0.142, allocations: 34.25 kB / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.142, allocations: 192 / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.142, allocations: 3.938 kB / 441.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.142, allocations: 7.938 kB / 441.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.03e-05/0.142, allocations: 11.94 kB / 441.9 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.1422, allocations: 149.7 kB / 442 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.1422, allocations: 14.58 kB / 442 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.1423, allocations: 8.953 kB / 442.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.786e-06/0.1423, allocations: 0 / 442.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.1423, allocations: 60.27 kB / 442.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1423, allocations: 4 kB / 442.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1425, allocations: 71.27 kB / 442.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.1426, allocations: 81.11 kB / 442.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.49e-05/0.1427, allocations: 89.86 kB / 442.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.1427, allocations: 25.7 kB / 442.4 MB, free: 12.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.1427, allocations: 80.14 kB / 442.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.1427, allocations: 4.281 kB / 442.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1428, allocations: 13.97 kB / 442.5 MB, free: 11.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1429, allocations: 318.8 kB / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.849e-06/0.1429, allocations: 0 / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-06/0.1429, allocations: 4 kB / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.143, allocations: 56.27 kB / 442.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.143, allocations: 4 kB / 442.8 MB, free: 11.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.782e-05/0.1431, allocations: 67.33 kB / 442.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1431, allocations: 33.7 kB / 442.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1431, allocations: 4.031 kB / 443 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1431, allocations: 4 kB / 443 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1431, allocations: 3.938 kB / 443 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1431, allocations: 0 / 443 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.1432, allocations: 0 / 443 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1432, allocations: 4 kB / 443 MB, free: 11.43 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.547e-05/0.1433, allocations: 139.4 kB / 443.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.1433, allocations: 0 / 443.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.1433, allocations: 15.05 kB / 443.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1433, allocations: 0 / 443.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1433, allocations: 4 kB / 443.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1433, allocations: 0 / 443.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.88e-05/0.1434, allocations: 145.7 kB / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1434, allocations: 0 / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1434, allocations: 4 kB / 443.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.1434, allocations: 0 / 443.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.1435, allocations: 7.922 kB / 443.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1435, allocations: 0 / 443.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1435, allocations: 0 / 443.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.1436, allocations: 94.78 kB / 443.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.1436, allocations: 88.94 kB / 443.5 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1436, allocations: 3.938 kB / 443.5 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-06/0.1437, allocations: 4 kB / 443.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.1437, allocations: 4 kB / 443.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1437, allocations: 0 / 443.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.84e-05/0.1437, allocations: 75.28 kB / 443.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1437, allocations: 128 / 443.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.144, allocations: 20 kB / 443.6 MB, free: 10.73 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 (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.0003543/0.1443, allocations: 188.1 kB / 443.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001101/0.1445, allocations: 67.34 kB / 443.8 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1445, allocations: 0 / 443.8 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.953e-05/0.1445, allocations: 59.34 kB / 443.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.1446, allocations: 0 / 443.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001914/0.1448, allocations: 82.75 kB / 443.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.1451, allocations: 0.6692 MB / 444.6 MB, free: 9.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1451, allocations: 0 / 444.6 MB, free: 9.602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.017e-05/0.1451, allocations: 11.44 kB / 444.6 MB, free: 9.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1452, allocations: 4.125 kB / 444.6 MB, free: 9.586 MB / 382.1 MB Notification: Performance of Templates: time 0.003068/0.1482, allocations: 0.6371 MB / 445.3 MB, free: 8.949 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