Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001379/0.00138, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.314/1.314, allocations: 222.9 MB / 242.6 MB, free: 15.43 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.1979/0.1979, allocations: 44.17 MB / 336.9 MB, free: 2.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 60.89 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09934, allocations: 60.82 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001824/0.1012, allocations: 0.5605 MB / 469.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.1028, allocations: 1.36 MB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.802e-05/0.1029, allocations: 0 / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.1029, allocations: 4 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.138e-05/0.1029, allocations: 0 / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006485/0.1036, allocations: 194.9 kB / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.1036, allocations: 11.98 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.144e-05/0.1037, allocations: 0 / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.959e-05/0.1037, allocations: 7.938 kB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.291e-05/0.1038, allocations: 0 / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.1038, allocations: 3.938 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003938/0.1042, allocations: 275.6 kB / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.1042, allocations: 0 / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.1042, allocations: 7.984 kB / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.1044, allocations: 83.83 kB / 471.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1044, allocations: 0 / 471.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1044, allocations: 3.938 kB / 471.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1044, allocations: 0 / 471.9 MB, free: 12.23 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.0003846/0.1048, allocations: 331.6 kB / 472.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1049, allocations: 8.031 kB / 472.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.379e-05/0.1049, allocations: 4.938 kB / 472.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.105, allocations: 168.3 kB / 472.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.105, allocations: 8.359 kB / 472.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.1051, allocations: 384 / 472.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.1052, allocations: 38.02 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1052, allocations: 0 / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1052, allocations: 0 / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1052, allocations: 4 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.405e-05/0.1053, allocations: 7.984 kB / 472.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003753/0.1057, allocations: 244.9 kB / 472.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.637e-05/0.1057, allocations: 22.55 kB / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.1057, allocations: 4.859 kB / 472.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.1058, allocations: 4.062 kB / 472.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.1058, allocations: 30.56 kB / 472.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1058, allocations: 0 / 472.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001397/0.1059, allocations: 37.7 kB / 472.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.106, allocations: 55.41 kB / 472.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.03e-05/0.1061, allocations: 101.7 kB / 472.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1061, allocations: 25.7 kB / 472.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.1061, allocations: 88.36 kB / 473 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.925e-06/0.1062, allocations: 11.84 kB / 473 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.1062, allocations: 13.72 kB / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1063, allocations: 315 kB / 473.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/0.1063, allocations: 4 kB / 473.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.679e-05/0.1064, allocations: 26.56 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.852e-05/0.1064, allocations: 26.52 kB / 473.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1064, allocations: 0 / 473.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.134e-05/0.1065, allocations: 53.62 kB / 473.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1065, allocations: 4 kB / 473.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1065, allocations: 4 kB / 473.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1065, allocations: 0 / 473.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.13e-05/0.1066, allocations: 7.938 kB / 473.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1066, allocations: 0 / 473.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.1066, allocations: 4 kB / 473.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1066, allocations: 0 / 473.5 MB, free: 10.37 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.206e-05/0.1067, allocations: 121.9 kB / 473.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.589e-05/0.1068, allocations: 8.062 kB / 473.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.1069, allocations: 48.72 kB / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1069, allocations: 0 / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1069, allocations: 0 / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1069, allocations: 0 / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.1071, allocations: 157.6 kB / 473.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1071, allocations: 0 / 473.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1071, allocations: 4.031 kB / 473.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1071, allocations: 0 / 473.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1071, allocations: 0 / 473.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1071, allocations: 4 kB / 473.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1071, allocations: 0 / 473.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.1072, allocations: 139.4 kB / 474 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.1073, allocations: 77.11 kB / 474 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.1073, allocations: 0 / 474 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.479e-05/0.1074, allocations: 4.031 kB / 474 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.1074, allocations: 3.938 kB / 474 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.1074, allocations: 4 kB / 474 MB, free: 9.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.403e-05/0.1074, allocations: 83.27 kB / 474.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1074, allocations: 0 / 474.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.1077, allocations: 40 kB / 474.2 MB, free: 9.59 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 (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.0002653/0.108, allocations: 135.8 kB / 474.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.437e-05/0.1081, allocations: 12.09 kB / 474.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1081, allocations: 0 / 474.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.1081, allocations: 33.64 kB / 474.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.1083, allocations: 15.88 kB / 474.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002203/0.1086, allocations: 114.6 kB / 474.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.1088, allocations: 0.6729 MB / 475.1 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.547e-05/0.1088, allocations: 7.438 kB / 475.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1089, allocations: 4.188 kB / 475.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of Templates: time 0.002461/0.1113, allocations: 0.913 MB / 476.1 MB, free: 7.613 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches