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.0007316/0.0007316, allocations: 96.66 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008812/0.0008813, allocations: 206.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1989/0.1989, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002768, allocations: 8 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1285, allocations: 63.57 MB / 483.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006843/0.1292, allocations: 222.8 kB / 483.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1314, allocations: 1.451 MB / 484.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.648e-05/0.1314, allocations: 0 / 484.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.1315, allocations: 0 / 484.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.081e-05/0.1315, allocations: 4 kB / 484.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006481/0.1322, allocations: 151.1 kB / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.218e-05/0.1322, allocations: 7.938 kB / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.221e-05/0.1323, allocations: 0 / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.329e-05/0.1323, allocations: 7.984 kB / 484.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.598e-05/0.1324, allocations: 3.984 kB / 484.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1324, allocations: 0 / 484.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004705/0.1329, allocations: 279.6 kB / 485.2 MB, free: 2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.1329, allocations: 0 / 485.2 MB, free: 2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.1329, allocations: 37.62 kB / 485.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.1332, allocations: 143.7 kB / 485.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1332, allocations: 0 / 485.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1332, allocations: 0 / 485.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1332, allocations: 0 / 485.4 MB, free: 1.816 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.0003801/0.1336, allocations: 339.5 kB / 485.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1336, allocations: 8.875 kB / 485.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.1337, allocations: 0.9375 kB / 485.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.597e-05/0.1338, allocations: 160.4 kB / 485.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.1338, allocations: 4.375 kB / 485.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.1338, allocations: 8.359 kB / 485.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.1339, allocations: 38.02 kB / 485.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1339, allocations: 0 / 485.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.134, allocations: 4 kB / 485.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.134, allocations: 0 / 485.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.823e-05/0.134, allocations: 15.92 kB / 485.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.1344, allocations: 236.9 kB / 486.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.631e-05/0.1344, allocations: 18.62 kB / 486.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/0.1345, allocations: 12.91 kB / 486.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1345, allocations: 0 / 486.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1345, allocations: 30.56 kB / 486.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1345, allocations: 0 / 486.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001601/0.1347, allocations: 41.64 kB / 486.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.1347, allocations: 55.34 kB / 486.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.175e-05/0.1348, allocations: 101.9 kB / 486.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1348, allocations: 29.7 kB / 486.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.053e-05/0.1349, allocations: 88.36 kB / 486.5 MB, free: 460 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.843e-06/0.1349, allocations: 3.906 kB / 486.5 MB, free: 456 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.1349, allocations: 9.719 kB / 486.6 MB, free: 440 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.135, allocations: 314.8 kB / 486.9 MB, free: 116 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.362e-05/0.1351, allocations: 4 kB / 486.9 MB, free: 112 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.088e-05/0.1351, allocations: 34.67 kB / 486.9 MB, free: 68 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.672e-05/0.1351, allocations: 26.52 kB / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1351, allocations: 0 / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001004/0.1352, allocations: 53.62 kB / 487 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1353, allocations: 6.344 kB / 487 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1353, allocations: 0 / 487 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1353, allocations: 4.094 kB / 487 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.122e-05/0.1354, allocations: 8 kB / 487 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1354, allocations: 0 / 487 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.978e-05/0.1354, allocations: 0 / 487 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.1354, allocations: 7.938 kB / 487 MB, free: 15.95 MB / 366.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 7.28e-05/0.1355, allocations: 113.8 kB / 487.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.1355, allocations: 0 / 487.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.1356, allocations: 44.81 kB / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1357, allocations: 0 / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1357, allocations: 4 kB / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1357, allocations: 3.938 kB / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.1358, allocations: 157.6 kB / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.1359, allocations: 4 kB / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1359, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1359, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.1359, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1359, allocations: 0 / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1359, allocations: 4.031 kB / 487.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.495e-05/0.136, allocations: 139.4 kB / 487.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.1361, allocations: 81.02 kB / 487.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.1361, allocations: 0 / 487.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.821e-05/0.1361, allocations: 4 kB / 487.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.1362, allocations: 3.938 kB / 487.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.1362, allocations: 0 / 487.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.394e-05/0.1362, allocations: 83.31 kB / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1362, allocations: 0 / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.1365, allocations: 43.98 kB / 487.7 MB, free: 15.18 MB / 366.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.0003201/0.1369, allocations: 135.2 kB / 487.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.888e-05/0.137, allocations: 15.92 kB / 487.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.137, allocations: 0 / 487.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.498e-05/0.137, allocations: 29.98 kB / 487.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.1372, allocations: 8 kB / 487.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002394/0.1375, allocations: 86.77 kB / 487.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.1378, allocations: 0.6731 MB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.897e-05/0.1378, allocations: 0 / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.377e-05/0.1379, allocations: 11.44 kB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1379, allocations: 0 / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Templates: time 0.00413/0.142, allocations: 1.085 MB / 489.7 MB, free: 13.07 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches