Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001668/0.001667, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.002/2.002, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2302/0.2302, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002608/0.002608, allocations: 75.34 kB / 417.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1389, allocations: 62.45 MB / 480.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.002121/0.141, allocations: 0.5476 MB / 480.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1433, allocations: 1.405 MB / 482.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.336e-05/0.1433, allocations: 0 / 482.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.1434, allocations: 0 / 482.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.925e-05/0.1434, allocations: 0 / 482.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008146/0.1442, allocations: 215.8 kB / 482.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.338e-05/0.1443, allocations: 15.92 kB / 482.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.1444, allocations: 0 / 482.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.747e-05/0.1444, allocations: 7.984 kB / 482.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.915e-05/0.1444, allocations: 4 kB / 482.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.1445, allocations: 0 / 482.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.145, allocations: 279.6 kB / 482.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.145, allocations: 4 kB / 482.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.933e-05/0.145, allocations: 7.938 kB / 482.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.1452, allocations: 87.81 kB / 482.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1452, allocations: 0 / 482.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1453, allocations: 0 / 482.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1453, allocations: 0 / 482.7 MB, free: 3.047 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.0004273/0.1457, allocations: 335.6 kB / 483 MB, free: 2.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1457, allocations: 8.031 kB / 483 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.1458, allocations: 4.875 kB / 483.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.1459, allocations: 164.4 kB / 483.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.1459, allocations: 4.375 kB / 483.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.146, allocations: 4.375 kB / 483.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.1461, allocations: 37.95 kB / 483.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.1461, allocations: 0 / 483.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.1461, allocations: 0 / 483.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1461, allocations: 4 kB / 483.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.185e-05/0.1461, allocations: 0 / 483.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.1463, allocations: 149.7 kB / 483.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.645e-05/0.1464, allocations: 22.61 kB / 483.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.1464, allocations: 4.859 kB / 483.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-06/0.1464, allocations: 0 / 483.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.1464, allocations: 38.44 kB / 483.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1464, allocations: 4 kB / 483.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001479/0.1466, allocations: 41.66 kB / 483.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.1466, allocations: 51.41 kB / 483.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.546e-05/0.1467, allocations: 97.86 kB / 483.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.1467, allocations: 25.7 kB / 483.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.1468, allocations: 80.14 kB / 483.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.1468, allocations: 0 / 483.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.1468, allocations: 13.97 kB / 483.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.147, allocations: 322.8 kB / 484.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.147, allocations: 3.938 kB / 484.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.131e-05/0.147, allocations: 7.938 kB / 484.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.962e-05/0.147, allocations: 8.859 kB / 484.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.147, allocations: 0 / 484.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.867e-05/0.1471, allocations: 29.7 kB / 484.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1471, allocations: 14.59 kB / 484.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1472, allocations: 4.094 kB / 484.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1472, allocations: 0 / 484.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.529e-05/0.1472, allocations: 3.984 kB / 484.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1473, allocations: 0 / 484.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.1473, allocations: 4.281 kB / 484.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.1473, allocations: 4 kB / 484.2 MB, free: 1.363 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.082e-05/0.1474, allocations: 109.8 kB / 484.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.1474, allocations: 3.938 kB / 484.3 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001475/0.1476, allocations: 52.69 kB / 484.3 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1476, allocations: 4 kB / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1476, allocations: 0 / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1476, allocations: 0 / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.1477, allocations: 149.7 kB / 484.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.1477, allocations: 7.938 kB / 484.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.1477, allocations: 0 / 484.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.1478, allocations: 3.938 kB / 484.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1478, allocations: 4.031 kB / 484.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1478, allocations: 0 / 484.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.1478, allocations: 0 / 484.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.428e-05/0.1479, allocations: 64.98 kB / 484.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.1479, allocations: 85.03 kB / 484.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.1479, allocations: 4 kB / 484.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.334e-05/0.148, allocations: 0 / 484.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.125e-05/0.148, allocations: 8.016 kB / 484.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.1481, allocations: 4 kB / 484.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.386e-05/0.1481, allocations: 75.28 kB / 484.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1481, allocations: 0 / 484.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.1484, allocations: 43.98 kB / 484.8 MB, free: 0.6562 MB / 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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0003192/0.1487, allocations: 139.2 kB / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.701e-05/0.1488, allocations: 11.94 kB / 484.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1488, allocations: 160 / 484.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.116e-05/0.1488, allocations: 37.62 kB / 485 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001483/0.149, allocations: 4 kB / 485 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002856/0.1493, allocations: 114.6 kB / 485.1 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1496, allocations: 0.6768 MB / 485.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.731e-05/0.1496, allocations: 7.438 kB / 485.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1496, allocations: 0 / 485.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Templates: time 0.002798/0.1524, allocations: 0.913 MB / 486.7 MB, free: 14.68 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches