Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 98.39 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 184.1 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1845/0.1845, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.000271, allocations: 11.98 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 61.91 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0006462/0.1033, allocations: 214.9 kB / 471.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.105, allocations: 1.306 MB / 473 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.745e-05/0.105, allocations: 0 / 473 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.929e-06/0.105, allocations: 0 / 473 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.68e-05/0.1051, allocations: 4 kB / 473 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005046/0.1056, allocations: 143.1 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.679e-05/0.1056, allocations: 7.984 kB / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.439e-05/0.1057, allocations: 7.984 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.597e-05/0.1057, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.42e-05/0.1057, allocations: 4 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.1058, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003822/0.1061, allocations: 251.6 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.327e-06/0.1062, allocations: 4 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/0.1062, allocations: 33.69 kB / 473.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.1063, allocations: 79.83 kB / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.1063, allocations: 0 / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1063, allocations: 0 / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1064, allocations: 3.938 kB / 473.5 MB, free: 11.7 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.0003164/0.1067, allocations: 335.4 kB / 473.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1067, allocations: 8.031 kB / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1068, allocations: 0 / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.1069, allocations: 159.1 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.1069, allocations: 4 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.1069, allocations: 3.953 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.107, allocations: 45.62 kB / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.107, allocations: 0 / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1071, allocations: 0 / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.1071, allocations: 3.938 kB / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.1071, allocations: 0 / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.1073, allocations: 153.7 kB / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.018e-05/0.1073, allocations: 14.58 kB / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.1073, allocations: 8.094 kB / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1074, allocations: 42.45 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1074, allocations: 0 / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.1075, allocations: 37.69 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.1076, allocations: 51.41 kB / 474.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.638e-05/0.1076, allocations: 93.84 kB / 474.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.1077, allocations: 25.7 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.095e-05/0.1077, allocations: 96.39 kB / 474.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.1077, allocations: 3.906 kB / 474.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.1078, allocations: 0 / 474.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1079, allocations: 310.8 kB / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-06/0.1079, allocations: 0 / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-06/0.1079, allocations: 4 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.462e-05/0.1079, allocations: 0 / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1079, allocations: 3.938 kB / 474.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.563e-05/0.108, allocations: 41.75 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.108, allocations: 4 kB / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.108, allocations: 3.953 kB / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.108, allocations: 0 / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.166e-05/0.1081, allocations: 4 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.1081, allocations: 0 / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.163e-05/0.1081, allocations: 0 / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1081, allocations: 0 / 474.9 MB, free: 10.05 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.1082, allocations: 114.7 kB / 475 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/0.1082, allocations: 4.031 kB / 475 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1084, allocations: 48.7 kB / 475.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1084, allocations: 3.953 kB / 475.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1084, allocations: 0 / 475.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1084, allocations: 3.938 kB / 475.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.1085, allocations: 157.6 kB / 475.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.1085, allocations: 0 / 475.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-06/0.1085, allocations: 4.031 kB / 475.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1085, allocations: 3.938 kB / 475.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.1085, allocations: 4 kB / 475.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1085, allocations: 0 / 475.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1085, allocations: 3.953 kB / 475.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.295e-05/0.1086, allocations: 61.12 kB / 475.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.1087, allocations: 81.02 kB / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.037e-05/0.1087, allocations: 0 / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.136e-05/0.1088, allocations: 8.031 kB / 475.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.913e-05/0.1088, allocations: 15.88 kB / 475.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1088, allocations: 0 / 475.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.258e-05/0.1088, allocations: 79.28 kB / 475.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1088, allocations: 0 / 475.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002419/0.1091, allocations: 36 kB / 475.5 MB, free: 9.336 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000242/0.1093, allocations: 143.2 kB / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.006e-05/0.1094, allocations: 8.094 kB / 475.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1094, allocations: 0 / 475.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.247e-05/0.1095, allocations: 29.7 kB / 475.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.1096, allocations: 3.938 kB / 475.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002082/0.1098, allocations: 82.75 kB / 475.8 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.11, allocations: 0.6731 MB / 476.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.309e-05/0.1101, allocations: 4.125 kB / 476.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.1101, allocations: 19.36 kB / 476.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1101, allocations: 0 / 476.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of Templates: time 0.002999/0.1131, allocations: 1.032 MB / 477.5 MB, free: 7.277 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches