Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_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.001114/0.001114, allocations: 111.6 kB / 17.04 MB, free: 5.812 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.001161/0.001161, allocations: 195 kB / 17.98 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1995/0.1995, allocations: 43.52 MB / 314.7 MB, free: 488 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 66.84 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09805/0.0996, allocations: 57.8 MB / 442 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001552/0.1012, allocations: 492.6 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.1027, allocations: 1.39 MB / 443.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.371e-05/0.1028, allocations: 0 / 443.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.1028, allocations: 4 kB / 443.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.403e-05/0.1028, allocations: 0 / 443.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000563/0.1034, allocations: 219.6 kB / 444.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.1034, allocations: 7.984 kB / 444.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.468e-05/0.1035, allocations: 4 kB / 444.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.1035, allocations: 4 kB / 444.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.52e-05/0.1036, allocations: 7.922 kB / 444.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.1036, allocations: 4 kB / 444.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003244/0.1039, allocations: 271.6 kB / 444.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.1039, allocations: 0 / 444.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.83e-05/0.1039, allocations: 15.97 kB / 444.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1041, allocations: 139.7 kB / 444.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1041, allocations: 0 / 444.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1041, allocations: 3.938 kB / 444.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.1041, allocations: 0 / 444.5 MB, free: 3.605 MB / 318.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.0002567/0.1044, allocations: 339.4 kB / 444.8 MB, free: 3.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.1044, allocations: 11.89 kB / 444.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.78e-05/0.1045, allocations: 0.9375 kB / 444.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.179e-05/0.1045, allocations: 164.4 kB / 445 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1046, allocations: 12.38 kB / 445 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1046, allocations: 384 / 445 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.363e-05/0.1046, allocations: 37.95 kB / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.1047, allocations: 0 / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1047, allocations: 0 / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1047, allocations: 0 / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.654e-05/0.1047, allocations: 0 / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.523e-05/0.1048, allocations: 157.7 kB / 445.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.353e-05/0.1048, allocations: 18.67 kB / 445.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.1049, allocations: 8.859 kB / 445.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.1049, allocations: 0 / 445.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.1049, allocations: 38.44 kB / 445.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.1049, allocations: 0 / 445.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001063/0.105, allocations: 37.69 kB / 445.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.105, allocations: 51.41 kB / 445.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.585e-05/0.1051, allocations: 102 kB / 445.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.1051, allocations: 25.7 kB / 445.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.453e-05/0.1051, allocations: 80.14 kB / 445.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.1051, allocations: 7.891 kB / 445.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/0.1052, allocations: 17.7 kB / 445.6 MB, free: 2.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.784e-05/0.1052, allocations: 314.8 kB / 445.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-06/0.1052, allocations: 0 / 445.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.173e-06/0.1052, allocations: 7.938 kB / 445.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.917e-05/0.1053, allocations: 13.05 kB / 445.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1053, allocations: 0 / 445.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.151e-05/0.1053, allocations: 29.7 kB / 446 MB, free: 1.938 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.1053, allocations: 13.19 kB / 446 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1053, allocations: 3.984 kB / 446 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1054, allocations: 0 / 446 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.7e-05/0.1054, allocations: 3.938 kB / 446 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1054, allocations: 0 / 446 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.1054, allocations: 4 kB / 446 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1054, allocations: 4.031 kB / 446 MB, free: 1.91 MB / 318.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 3.687e-05/0.1055, allocations: 113.8 kB / 446.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.1055, allocations: 7.875 kB / 446.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.1056, allocations: 48.73 kB / 446.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1056, allocations: 4 kB / 446.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1056, allocations: 32 / 446.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1056, allocations: 4 kB / 446.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.518e-05/0.1057, allocations: 149.7 kB / 446.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1057, allocations: 4 kB / 446.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1057, allocations: 0 / 446.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1057, allocations: 3.938 kB / 446.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.1057, allocations: 0 / 446.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.1057, allocations: 0 / 446.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1057, allocations: 0 / 446.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.166e-05/0.1058, allocations: 69.06 kB / 446.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.386e-05/0.1058, allocations: 81.05 kB / 446.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-06/0.1058, allocations: 8 kB / 446.5 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.808e-05/0.1059, allocations: 0 / 446.5 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.1059, allocations: 0 / 446.5 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.1059, allocations: 4 kB / 446.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.556e-05/0.1059, allocations: 75.28 kB / 446.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1059, allocations: 0 / 446.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002086/0.1061, allocations: 40.11 kB / 446.6 MB, free: 1.207 MB / 318.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.0002052/0.1063, allocations: 135.2 kB / 446.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.466e-05/0.1064, allocations: 7.984 kB / 446.7 MB, free: 1.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1065, allocations: 4 kB / 446.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.098e-05/0.1065, allocations: 29.64 kB / 446.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1067, allocations: 4 kB / 446.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001807/0.1068, allocations: 84.98 kB / 446.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.107, allocations: 0.6808 MB / 447.5 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.236e-05/0.107, allocations: 0 / 447.5 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.192e-05/0.107, allocations: 7.438 kB / 447.5 MB, free: 196 kB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.107, allocations: 3.938 kB / 447.5 MB, free: 192 kB / 318.1 MB Notification: Performance of Templates: time 0.003038/0.11, allocations: 1.071 MB / 448.6 MB, free: 15.11 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches