Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 96.59 kB / 15.98 MB, free: 6.363 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.001656/0.001656, allocations: 194.8 kB / 16.91 MB, free: 6.195 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.7/1.7, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.3673/0.3673, allocations: 43.5 MB / 313.6 MB, free: 8.566 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.001649/0.001649, allocations: 63.91 kB / 382.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1355, allocations: 57.79 MB / 440 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001747/0.1373, allocations: 0.5542 MB / 440.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.1393, allocations: 1.248 MB / 441.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.1394, allocations: 0 / 441.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.1394, allocations: 4 kB / 441.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.1396, allocations: 15.91 kB / 441.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009175/0.1405, allocations: 215.4 kB / 442 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.006e-05/0.1406, allocations: 7.984 kB / 442 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.477e-05/0.1406, allocations: 4 kB / 442 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.01e-05/0.1406, allocations: 7.875 kB / 442 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.101e-05/0.1407, allocations: 4 kB / 442.1 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.1407, allocations: 0 / 442.1 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.1437, allocations: 0.6584 MB / 442.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.1437, allocations: 0 / 442.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.305e-05/0.1438, allocations: 0 / 442.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.144, allocations: 179.6 kB / 442.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.144, allocations: 0 / 442.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1441, allocations: 0 / 442.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1441, allocations: 4 kB / 442.9 MB, free: 11.89 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.0004586/0.1445, allocations: 389 kB / 443.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.1446, allocations: 15.89 kB / 443.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.1446, allocations: 0.9375 kB / 443.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.1448, allocations: 160.4 kB / 443.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.1448, allocations: 384 / 443.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.1448, allocations: 4.375 kB / 443.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.569e-05/0.1449, allocations: 41.8 kB / 443.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1449, allocations: 4 kB / 443.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1449, allocations: 0 / 443.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.145, allocations: 0 / 443.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.145, allocations: 7.938 kB / 443.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.1452, allocations: 145.7 kB / 443.6 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.333e-05/0.1452, allocations: 22.59 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.1452, allocations: 4.859 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.1452, allocations: 0 / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.167e-05/0.1453, allocations: 68.27 kB / 443.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.1453, allocations: 0 / 443.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000199/0.1455, allocations: 71.33 kB / 443.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.1456, allocations: 81.09 kB / 443.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.1457, allocations: 93.86 kB / 444 MB, free: 10.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1457, allocations: 29.64 kB / 444 MB, free: 10.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.1457, allocations: 80.39 kB / 444.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1458, allocations: 4 kB / 444.1 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.1458, allocations: 17.72 kB / 444.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.146, allocations: 310.8 kB / 444.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.146, allocations: 7.922 kB / 444.4 MB, free: 10.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.414e-06/0.146, allocations: 4 kB / 444.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.576e-05/0.146, allocations: 60.27 kB / 444.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.146, allocations: 0 / 444.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.033e-05/0.1461, allocations: 79.25 kB / 444.6 MB, free: 9.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.1462, allocations: 33.69 kB / 444.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1462, allocations: 0 / 444.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1462, allocations: 0 / 444.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1462, allocations: 0 / 444.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1462, allocations: 4 kB / 444.6 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.1462, allocations: 0 / 444.6 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.1463, allocations: 0 / 444.6 MB, free: 9.918 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 7.343e-05/0.1463, allocations: 135.5 kB / 444.7 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1463, allocations: 7.969 kB / 444.7 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.849e-06/0.1464, allocations: 3.125 kB / 444.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1464, allocations: 0 / 444.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1464, allocations: 0 / 444.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1464, allocations: 3.984 kB / 444.7 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.641e-05/0.1465, allocations: 149.7 kB / 444.9 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.1465, allocations: 0 / 444.9 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.894e-06/0.1465, allocations: 3.938 kB / 444.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1465, allocations: 0 / 444.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1465, allocations: 0 / 444.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1465, allocations: 4 kB / 444.9 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.1465, allocations: 7.984 kB / 444.9 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.1466, allocations: 90.78 kB / 445 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.1467, allocations: 81.05 kB / 445.1 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1467, allocations: 3.984 kB / 445.1 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-06/0.1467, allocations: 4 kB / 445.1 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.1467, allocations: 4 kB / 445.1 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.1467, allocations: 0 / 445.1 MB, free: 9.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.039e-05/0.1468, allocations: 79.31 kB / 445.2 MB, free: 9.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1468, allocations: 0 / 445.2 MB, free: 9.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1471, allocations: 63.98 kB / 445.2 MB, free: 9.18 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.0006224/0.1477, allocations: 329.9 kB / 445.5 MB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.1478, allocations: 59.41 kB / 445.6 MB, free: 8.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1479, allocations: 4 kB / 445.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.086e-05/0.1479, allocations: 55.34 kB / 445.7 MB, free: 8.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.148, allocations: 11.92 kB / 445.7 MB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001932/0.1482, allocations: 96.86 kB / 445.8 MB, free: 8.574 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.1485, allocations: 0.6691 MB / 446.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.556e-06/0.1485, allocations: 8 kB / 446.4 MB, free: 7.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.1485, allocations: 7.438 kB / 446.4 MB, free: 7.863 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1485, allocations: 0 / 446.4 MB, free: 7.863 MB / 382.1 MB Notification: Performance of Templates: time 0.004615/0.1532, allocations: 1.592 MB / 448 MB, free: 6.27 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches