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.0009258/0.0009258, allocations: 96.42 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 207.9 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1923/0.1923, allocations: 46.19 MB / 345.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 8 kB / 420.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 63.57 MB / 483.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0006031/0.1145, allocations: 211 kB / 483.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.1164, allocations: 1.458 MB / 485.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.462e-05/0.1164, allocations: 0 / 485.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.1165, allocations: 0 / 485.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.111e-05/0.1165, allocations: 4 kB / 485.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.117, allocations: 151.3 kB / 485.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.108e-05/0.1171, allocations: 7.938 kB / 485.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.1171, allocations: 4 kB / 485.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.1171, allocations: 0 / 485.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.553e-05/0.1172, allocations: 11.98 kB / 485.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.1172, allocations: 0 / 485.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.1176, allocations: 279.6 kB / 485.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.193e-05/0.1177, allocations: 3.984 kB / 485.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.1177, allocations: 33.62 kB / 485.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1179, allocations: 83.83 kB / 486 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1179, allocations: 0 / 486 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1179, allocations: 0 / 486 MB, free: 1.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1179, allocations: 0 / 486 MB, free: 1.926 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.0003374/0.1182, allocations: 335.6 kB / 486.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1183, allocations: 8.875 kB / 486.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.1183, allocations: 4.938 kB / 486.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.979e-05/0.1184, allocations: 164.4 kB / 486.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.1184, allocations: 4.375 kB / 486.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1184, allocations: 384 / 486.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.826e-05/0.1185, allocations: 34.02 kB / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.1185, allocations: 0 / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.1186, allocations: 3.984 kB / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1186, allocations: 0 / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.151e-05/0.1186, allocations: 3.938 kB / 486.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.1187, allocations: 157.7 kB / 486.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.476e-05/0.1188, allocations: 14.58 kB / 486.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.788e-05/0.1188, allocations: 8.953 kB / 486.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.1188, allocations: 0 / 486.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.1189, allocations: 38.44 kB / 486.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1189, allocations: 0 / 486.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001318/0.119, allocations: 53.53 kB / 486.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.119, allocations: 51.41 kB / 486.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.139e-05/0.1191, allocations: 93.86 kB / 486.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.1191, allocations: 25.7 kB / 486.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.712e-05/0.1192, allocations: 80.14 kB / 487 MB, free: 0.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1192, allocations: 0 / 487 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.1192, allocations: 13.72 kB / 487 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.607e-05/0.1193, allocations: 319.1 kB / 487.3 MB, free: 336 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.1194, allocations: 4 kB / 487.4 MB, free: 332 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1194, allocations: 3.938 kB / 487.4 MB, free: 328 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.444e-05/0.1194, allocations: 8.859 kB / 487.4 MB, free: 316 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1194, allocations: 0 / 487.4 MB, free: 316 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.641e-05/0.1195, allocations: 37.64 kB / 487.4 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1195, allocations: 7.938 kB / 487.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1195, allocations: 0 / 487.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.427e-06/0.1195, allocations: 0 / 487.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.866e-05/0.1196, allocations: 8.078 kB / 487.4 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1196, allocations: 4 kB / 487.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.501e-05/0.1196, allocations: 8 kB / 487.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1196, allocations: 0 / 487.4 MB, free: 244 kB / 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 6.798e-05/0.1197, allocations: 110.1 kB / 487.5 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.1197, allocations: 3.938 kB / 487.5 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.1198, allocations: 48.75 kB / 487.6 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1198, allocations: 0 / 487.6 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1198, allocations: 0 / 487.6 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1199, allocations: 0 / 487.6 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.12, allocations: 157.6 kB / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.12, allocations: 0 / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.12, allocations: 0 / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.12, allocations: 3.938 kB / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.12, allocations: 4 kB / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.12, allocations: 0 / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.12, allocations: 0 / 487.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.799e-05/0.1201, allocations: 61.17 kB / 487.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/0.1201, allocations: 88.94 kB / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.1201, allocations: 0 / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.1202, allocations: 4 kB / 487.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.1202, allocations: 3.938 kB / 487.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.1203, allocations: 0 / 487.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.381e-05/0.1203, allocations: 83.31 kB / 488 MB, free: 15.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1203, allocations: 3.938 kB / 488 MB, free: 15.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002454/0.1206, allocations: 43.98 kB / 488 MB, free: 15.54 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.0002781/0.1208, allocations: 135.2 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.604e-05/0.1209, allocations: 4 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1209, allocations: 3.938 kB / 488.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.351e-05/0.121, allocations: 33.69 kB / 488.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.1211, allocations: 224 / 488.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002322/0.1214, allocations: 124.4 kB / 488.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.1216, allocations: 0.6731 MB / 489 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.454e-05/0.1216, allocations: 11.44 kB / 489 MB, free: 14.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.943e-06/0.1216, allocations: 0 / 489 MB, free: 14.48 MB / 366.1 MB Notification: Performance of Templates: time 0.002487/0.1241, allocations: 0.909 MB / 489.9 MB, free: 13.57 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