Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.001633, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 46.1 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 77.41 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1244, allocations: 62.45 MB / 480.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001831/0.1263, allocations: 482.4 kB / 481.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.1282, allocations: 1.407 MB / 482.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.432e-05/0.1283, allocations: 0 / 482.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.1283, allocations: 7.938 kB / 482.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.874e-05/0.1283, allocations: 0 / 482.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007595/0.1291, allocations: 227.2 kB / 482.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.326e-05/0.1292, allocations: 15.92 kB / 482.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.1292, allocations: 0 / 482.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.905e-05/0.1292, allocations: 4 kB / 482.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.1293, allocations: 4 kB / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1293, allocations: 4 kB / 482.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004574/0.1298, allocations: 279.6 kB / 483.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.1298, allocations: 3.984 kB / 483.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.1298, allocations: 7.938 kB / 483.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.1301, allocations: 143.7 kB / 483.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1301, allocations: 0 / 483.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1301, allocations: 0 / 483.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1301, allocations: 0 / 483.3 MB, free: 2.723 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.0003659/0.1305, allocations: 339.6 kB / 483.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1305, allocations: 8.031 kB / 483.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.347e-05/0.1306, allocations: 0.9375 kB / 483.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.764e-05/0.1307, allocations: 168.4 kB / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1307, allocations: 384 / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.1307, allocations: 384 / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.1308, allocations: 45.98 kB / 483.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1308, allocations: 3.938 kB / 483.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.1308, allocations: 4 kB / 483.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1309, allocations: 0 / 483.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.1309, allocations: 11.98 kB / 483.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003594/0.1313, allocations: 244.9 kB / 484.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.455e-05/0.1313, allocations: 14.58 kB / 484.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.915e-05/0.1314, allocations: 8.922 kB / 484.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.1314, allocations: 0 / 484.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1314, allocations: 42.48 kB / 484.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1314, allocations: 3.938 kB / 484.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.1316, allocations: 37.7 kB / 484.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.1316, allocations: 51.41 kB / 484.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.713e-05/0.1317, allocations: 93.77 kB / 484.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.1317, allocations: 29.7 kB / 484.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.1318, allocations: 92.34 kB / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-06/0.1318, allocations: 4.156 kB / 484.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.1318, allocations: 17.72 kB / 484.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1319, allocations: 314.8 kB / 484.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.351e-05/0.1319, allocations: 4 kB / 484.8 MB, free: 1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.628e-05/0.132, allocations: 26.5 kB / 484.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.631e-05/0.132, allocations: 30.52 kB / 484.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.132, allocations: 0 / 484.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.633e-05/0.1321, allocations: 49.62 kB / 484.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.1321, allocations: 8 kB / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1321, allocations: 0 / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1322, allocations: 0 / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.017e-05/0.1322, allocations: 4 kB / 484.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.1322, allocations: 7.938 kB / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.838e-05/0.1322, allocations: 0 / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-06/0.1323, allocations: 4.094 kB / 484.9 MB, free: 0.8477 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.096e-05/0.1323, allocations: 117.8 kB / 485 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.1324, allocations: 0 / 485 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.1325, allocations: 40.81 kB / 485 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.1325, allocations: 0 / 485 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1325, allocations: 0 / 485 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1325, allocations: 4.031 kB / 485 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.1327, allocations: 157.6 kB / 485.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1327, allocations: 0 / 485.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1327, allocations: 0 / 485.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1327, allocations: 0 / 485.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1327, allocations: 8 kB / 485.2 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1327, allocations: 3.938 kB / 485.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1327, allocations: 0 / 485.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.823e-05/0.1328, allocations: 143.4 kB / 485.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.1329, allocations: 77.2 kB / 485.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.1329, allocations: 7.922 kB / 485.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.567e-05/0.1329, allocations: 0 / 485.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.133, allocations: 4 kB / 485.4 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.133, allocations: 0 / 485.4 MB, free: 204 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.893e-05/0.133, allocations: 75.28 kB / 485.5 MB, free: 128 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 485.5 MB, free: 128 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003032/0.1333, allocations: 43.98 kB / 485.6 MB, free: 84 kB / 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.0002741/0.1336, allocations: 139.4 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.554e-05/0.1337, allocations: 15.92 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1337, allocations: 0 / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.065e-05/0.1337, allocations: 25.7 kB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.1339, allocations: 14.28 kB / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002253/0.1342, allocations: 110.6 kB / 485.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.1344, allocations: 0.6731 MB / 486.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.1344, allocations: 11.44 kB / 486.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1345, allocations: 0 / 486.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Templates: time 0.00254/0.137, allocations: 0.9359 MB / 487.5 MB, free: 14.09 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches