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.001137/0.001137, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.0012, allocations: 206.4 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.11 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 89.05 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1224, allocations: 62.44 MB / 480.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001858/0.1243, allocations: 0.494 MB / 480.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1262, allocations: 1.406 MB / 482 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.286e-05/0.1263, allocations: 4 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.1263, allocations: 0 / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.059e-05/0.1263, allocations: 0 / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007064/0.127, allocations: 231.7 kB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.058e-05/0.1271, allocations: 7.938 kB / 482.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.608e-05/0.1271, allocations: 0 / 482.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.147e-05/0.1272, allocations: 11.98 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.177e-05/0.1272, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.1272, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000434/0.1277, allocations: 275.6 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.1277, allocations: 4 kB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.158e-05/0.1277, allocations: 7.938 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.128, allocations: 143.7 kB / 482.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.128, allocations: 0 / 482.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.128, allocations: 0 / 482.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.128, allocations: 11.88 kB / 482.7 MB, free: 2.645 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.0003906/0.1284, allocations: 331.6 kB / 483 MB, free: 2.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1284, allocations: 12.03 kB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.1285, allocations: 4.922 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.979e-05/0.1286, allocations: 160.4 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1286, allocations: 4.375 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.1286, allocations: 4.375 kB / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.1287, allocations: 42 kB / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.1287, allocations: 0 / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.1287, allocations: 0 / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1288, allocations: 0 / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.238e-05/0.1288, allocations: 8 kB / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.1291, allocations: 248.9 kB / 483.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.737e-05/0.1292, allocations: 18.58 kB / 483.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.81e-05/0.1292, allocations: 4.859 kB / 483.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.1292, allocations: 0 / 483.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.1293, allocations: 34.62 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.1293, allocations: 0 / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.1294, allocations: 33.64 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.1295, allocations: 63.45 kB / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.828e-05/0.1295, allocations: 101.8 kB / 483.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.1295, allocations: 25.7 kB / 483.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.1296, allocations: 88.36 kB / 483.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.885e-06/0.1296, allocations: 3.906 kB / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.1296, allocations: 17.72 kB / 483.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.1297, allocations: 318.8 kB / 484.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.1298, allocations: 128 / 484.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.489e-05/0.1298, allocations: 26.58 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.648e-05/0.1298, allocations: 26.52 kB / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1298, allocations: 0 / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.74e-05/0.1299, allocations: 49.69 kB / 484.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.13, allocations: 8.031 kB / 484.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.13, allocations: 0 / 484.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.13, allocations: 4.094 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.259e-05/0.13, allocations: 4 kB / 484.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1301, allocations: 3.984 kB / 484.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.038e-05/0.1301, allocations: 7.984 kB / 484.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.1301, allocations: 0 / 484.3 MB, free: 0.7852 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 7.658e-05/0.1302, allocations: 113.8 kB / 484.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.1302, allocations: 4 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1303, allocations: 52.75 kB / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1303, allocations: 0 / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1303, allocations: 3.938 kB / 484.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1304, allocations: 0 / 484.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1305, allocations: 153.6 kB / 484.6 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.1305, allocations: 0 / 484.6 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.1305, allocations: 0 / 484.6 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1305, allocations: 8.016 kB / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.1305, allocations: 0 / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1305, allocations: 0 / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1305, allocations: 0 / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.164e-05/0.1306, allocations: 135.3 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.129e-05/0.1307, allocations: 81.11 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.1307, allocations: 0 / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.1308, allocations: 7.984 kB / 484.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.1308, allocations: 7.969 kB / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.1308, allocations: 4 kB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.843e-05/0.1308, allocations: 75.28 kB / 484.9 MB, free: 56 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1308, allocations: 0 / 484.9 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.1311, allocations: 40 kB / 484.9 MB, free: 16 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.0002846/0.1314, allocations: 139.2 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.18e-05/0.1315, allocations: 12.09 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1315, allocations: 4.125 kB / 485.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.915e-05/0.1316, allocations: 29.7 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.1318, allocations: 11.88 kB / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002173/0.132, allocations: 84.92 kB / 485.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1323, allocations: 0.6729 MB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.545e-05/0.1323, allocations: 3.984 kB / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.588e-05/0.1323, allocations: 15.5 kB / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1323, allocations: 0 / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Templates: time 0.00366/0.136, allocations: 1.097 MB / 487 MB, free: 13.89 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