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.0008976/0.0008975, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009172/0.0009173, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.206/0.206, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002885/0.0002885, allocations: 8.375 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 63.56 MB / 483.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005776/0.1136, allocations: 218.9 kB / 483.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.1155, allocations: 1.447 MB / 484.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.264e-05/0.1155, allocations: 0 / 484.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.1155, allocations: 0 / 484.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.413e-05/0.1155, allocations: 4 kB / 484.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.1161, allocations: 162.3 kB / 484.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.007e-05/0.1162, allocations: 11.94 kB / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.671e-05/0.1162, allocations: 0 / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.958e-05/0.1162, allocations: 7.984 kB / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.647e-05/0.1163, allocations: 0 / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.165e-05/0.1163, allocations: 0 / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004055/0.1167, allocations: 275.6 kB / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.937e-05/0.1167, allocations: 11.97 kB / 485.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.966e-05/0.1168, allocations: 29.64 kB / 485.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.117, allocations: 143.7 kB / 485.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.117, allocations: 0 / 485.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.117, allocations: 0 / 485.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.117, allocations: 0 / 485.4 MB, free: 1.836 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.0003656/0.1174, allocations: 338.2 kB / 485.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1174, allocations: 12.81 kB / 485.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.1175, allocations: 0.9375 kB / 485.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.1176, allocations: 164.4 kB / 485.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1176, allocations: 4.375 kB / 485.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.1176, allocations: 384 / 485.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.1178, allocations: 42.02 kB / 485.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1178, allocations: 3.984 kB / 485.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.1178, allocations: 0 / 485.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1178, allocations: 4 kB / 485.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.343e-05/0.1178, allocations: 7.938 kB / 485.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003505/0.1182, allocations: 248.9 kB / 486.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.1182, allocations: 14.58 kB / 486.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.499e-05/0.1183, allocations: 8.859 kB / 486.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.1183, allocations: 4.062 kB / 486.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.1183, allocations: 30.56 kB / 486.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.376e-06/0.1183, allocations: 0 / 486.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.1185, allocations: 41.58 kB / 486.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.1185, allocations: 55.41 kB / 486.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.1186, allocations: 101.9 kB / 486.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.1186, allocations: 25.7 kB / 486.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.1187, allocations: 88.36 kB / 486.5 MB, free: 480 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.1187, allocations: 7.906 kB / 486.6 MB, free: 472 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.131e-05/0.1187, allocations: 9.719 kB / 486.6 MB, free: 456 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1188, allocations: 314.8 kB / 486.9 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.566e-05/0.1188, allocations: 7.984 kB / 486.9 MB, free: 124 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.1189, allocations: 18.58 kB / 486.9 MB, free: 96 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.538e-05/0.1189, allocations: 34.64 kB / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1189, allocations: 0 / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.578e-05/0.119, allocations: 49.67 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.119, allocations: 8 kB / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.119, allocations: 0 / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1191, allocations: 4.094 kB / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.5e-05/0.1191, allocations: 4 kB / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.1191, allocations: 4 kB / 487 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.1192, allocations: 0 / 487 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.1192, allocations: 7.938 kB / 487 MB, free: 15.96 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.939e-05/0.1193, allocations: 113.7 kB / 487.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.1193, allocations: 4 kB / 487.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.1194, allocations: 48.91 kB / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1194, allocations: 0 / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1194, allocations: 0 / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.1194, allocations: 4 kB / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.1196, allocations: 157.5 kB / 487.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1196, allocations: 0 / 487.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.1196, allocations: 0 / 487.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1196, allocations: 4 kB / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-06/0.1197, allocations: 0 / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.1197, allocations: 0 / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1197, allocations: 4.031 kB / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.312e-05/0.1198, allocations: 135.4 kB / 487.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.1198, allocations: 81.02 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.1198, allocations: 0 / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.577e-05/0.1199, allocations: 7.938 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.1199, allocations: 4 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.1199, allocations: 3.984 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.164e-05/0.12, allocations: 83.31 kB / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.12, allocations: 0 / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000286/0.1203, allocations: 36 kB / 487.7 MB, free: 15.2 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.0002673/0.1205, allocations: 139.2 kB / 487.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.706e-05/0.1206, allocations: 11.94 kB / 487.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1206, allocations: 0 / 487.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.936e-05/0.1206, allocations: 29.98 kB / 487.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.1209, allocations: 8 kB / 487.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002002/0.1211, allocations: 86.75 kB / 487.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.1214, allocations: 0.6731 MB / 488.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.446e-05/0.1214, allocations: 0 / 488.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.292e-05/0.1214, allocations: 11.44 kB / 488.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1215, allocations: 0 / 488.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Templates: time 0.003275/0.1247, allocations: 1.085 MB / 489.7 MB, free: 13.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/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