Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.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.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 98.58 kB / 17.01 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2231/0.2231, allocations: 46.19 MB / 344.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002998/0.0002998, allocations: 4 kB / 418.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 63.57 MB / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0006831/0.1344, allocations: 218.9 kB / 482.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003123/0.1347, allocations: 98.38 kB / 482.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.1348, allocations: 0 / 482.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.1348, allocations: 0 / 482.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.135, allocations: 11.98 kB / 482.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.032e-05/0.135, allocations: 7.938 kB / 482.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.449e-05/0.1351, allocations: 4 kB / 482.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.986e-05/0.1352, allocations: 0 / 482.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.368e-05/0.1352, allocations: 8 kB / 482.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.845e-05/0.1352, allocations: 7.922 kB / 482.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1353, allocations: 0 / 482.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.624e-05/0.1354, allocations: 27.97 kB / 482.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.1354, allocations: 3.938 kB / 482.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.1354, allocations: 25.7 kB / 482.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.856e-05/0.1355, allocations: 7.984 kB / 482.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1355, allocations: 4 kB / 482.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1355, allocations: 4 kB / 482.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1355, allocations: 0 / 482.8 MB, free: 4.113 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003051/0.1358, allocations: 321.7 kB / 483.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1359, allocations: 8.031 kB / 483.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.723e-05/0.1359, allocations: 0 / 483.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.136, allocations: 163 kB / 483.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1361, allocations: 0 / 483.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.1361, allocations: 4 kB / 483.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.915e-05/0.1362, allocations: 41.62 kB / 483.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.1362, allocations: 4 kB / 483.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1362, allocations: 0 / 483.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.1362, allocations: 0 / 483.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.322e-05/0.1363, allocations: 4 kB / 483.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001867/0.1365, allocations: 157.9 kB / 483.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.1367, allocations: 34.61 kB / 483.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.825e-05/0.1367, allocations: 16.8 kB / 483.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003491/0.1371, allocations: 129.1 kB / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.1371, allocations: 30.56 kB / 483.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 2.525e-06/0.1371, allocations: 4 kB / 483.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.001153/0.1383, allocations: 221.5 kB / 483.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.1383, allocations: 51.41 kB / 484 MB, free: 2.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.635e-05/0.1384, allocations: 89.86 kB / 484.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.1384, allocations: 37.83 kB / 484.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.1385, allocations: 80.14 kB / 484.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.1385, allocations: 15.78 kB / 484.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.1385, allocations: 0 / 484.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1386, allocations: 318.8 kB / 484.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.172e-05/0.1387, allocations: 15.98 kB / 484.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-05/0.1388, allocations: 27.98 kB / 484.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.564e-05/0.1389, allocations: 27.94 kB / 484.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.1389, allocations: 3.938 kB / 484.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001918/0.1391, allocations: 85.59 kB / 484.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1391, allocations: 8 kB / 484.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1391, allocations: 3.984 kB / 484.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1391, allocations: 0 / 484.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1392, allocations: 19.98 kB / 484.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1393, allocations: 4 kB / 484.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.322e-05/0.1393, allocations: 8.234 kB / 484.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.1393, allocations: 4 kB / 484.7 MB, free: 1.98 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 7.696e-05/0.1394, allocations: 118.3 kB / 484.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.1394, allocations: 3.906 kB / 484.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002536/0.1397, allocations: 97.14 kB / 484.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1397, allocations: 4 kB / 484.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1397, allocations: 4 kB / 484.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1397, allocations: 0 / 484.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000674/0.1404, allocations: 379.3 kB / 485.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1404, allocations: 0 / 485.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.839e-05/0.1405, allocations: 15.98 kB / 485.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1405, allocations: 0 / 485.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1405, allocations: 4 kB / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1405, allocations: 0 / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1406, allocations: 0 / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.1408, allocations: 188.4 kB / 485.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.515e-05/0.1408, allocations: 85.02 kB / 485.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.1409, allocations: 0 / 485.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-05/0.141, allocations: 11.98 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.141, allocations: 7.938 kB / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.141, allocations: 4 kB / 485.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.094e-05/0.141, allocations: 79.28 kB / 485.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.141, allocations: 0 / 485.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.1413, allocations: 8 kB / 485.7 MB, free: 0.8828 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001566/0.1414, allocations: 103.1 kB / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002029/0.1416, allocations: 56.06 kB / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1417, allocations: 0 / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.12e-05/0.1417, allocations: 39.84 kB / 485.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.142, allocations: 14.67 kB / 485.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/0.1424, allocations: 131.6 kB / 486 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1427, allocations: 0.6809 MB / 486.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.665e-05/0.1427, allocations: 4.25 kB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.373e-05/0.1428, allocations: 11.44 kB / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1428, allocations: 0 / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Templates: time 0.002575/0.1454, allocations: 0.6234 MB / 487.4 MB, free: 15.16 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches