Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_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.001206/0.001206, allocations: 109.2 kB / 17.03 MB, free: 5.707 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.001211/0.001211, allocations: 194.9 kB / 17.96 MB, free: 5.082 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.322/1.322, 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.2051/0.2051, allocations: 43.52 MB / 314.7 MB, free: 468 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.001694/0.001694, allocations: 71.23 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09257, allocations: 57.79 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001705/0.09432, allocations: 496.5 kB / 442.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.0959, allocations: 1.383 MB / 443.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.099e-05/0.09595, allocations: 4 kB / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.873e-05/0.09598, allocations: 0 / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.064e-05/0.09602, allocations: 7.938 kB / 443.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006522/0.09668, allocations: 211.6 kB / 444 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.569e-05/0.09674, allocations: 11.98 kB / 444.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.094e-05/0.09681, allocations: 8 kB / 444.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.09e-05/0.09684, allocations: 0 / 444.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.786e-05/0.0969, allocations: 7.938 kB / 444.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.09692, allocations: 3.984 kB / 444.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000379/0.0973, allocations: 275.6 kB / 444.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.09733, allocations: 7.938 kB / 444.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.09736, allocations: 4 kB / 444.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.09756, allocations: 139.7 kB / 444.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.09758, allocations: 0 / 444.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.09758, allocations: 0 / 444.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.09759, allocations: 0 / 444.5 MB, free: 3.59 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003265/0.09793, allocations: 339.5 kB / 444.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.09797, allocations: 11.89 kB / 444.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.09802, allocations: 8.938 kB / 444.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.032e-05/0.09808, allocations: 164.3 kB / 445 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.0981, allocations: 8.375 kB / 445 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.09812, allocations: 4.359 kB / 445 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.09823, allocations: 41.95 kB / 445.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.09825, allocations: 3.938 kB / 445.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.09827, allocations: 0 / 445.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.09828, allocations: 0 / 445.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.157e-05/0.09832, allocations: 11.98 kB / 445.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002885/0.09861, allocations: 240.9 kB / 445.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.418e-05/0.09866, allocations: 22.56 kB / 445.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.45e-05/0.09868, allocations: 12.84 kB / 445.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.09869, allocations: 0 / 445.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.09872, allocations: 30.56 kB / 445.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.09872, allocations: 0 / 445.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001262/0.09885, allocations: 33.77 kB / 445.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.09889, allocations: 55.53 kB / 445.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.165e-05/0.09895, allocations: 101.8 kB / 445.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-06/0.09896, allocations: 25.7 kB / 445.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.09899, allocations: 84.05 kB / 445.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.26e-06/0.099, allocations: 0 / 445.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.09903, allocations: 25.56 kB / 445.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.371e-05/0.09908, allocations: 314.8 kB / 446 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.218e-05/0.0991, allocations: 4.125 kB / 446 MB, free: 1.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/0.09912, allocations: 26.56 kB / 446 MB, free: 1.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.623e-05/0.09915, allocations: 22.58 kB / 446.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09916, allocations: 0 / 446.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.009e-05/0.09923, allocations: 49.72 kB / 446.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.09925, allocations: 17.19 kB / 446.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.09926, allocations: 0 / 446.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.09927, allocations: 0 / 446.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.723e-05/0.09933, allocations: 11.94 kB / 446.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.09934, allocations: 0 / 446.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.09936, allocations: 0 / 446.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.09937, allocations: 4 kB / 446.1 MB, free: 1.711 MB / 318.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 4.66e-05/0.09942, allocations: 113.7 kB / 446.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.09945, allocations: 4.078 kB / 446.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.088e-05/0.09955, allocations: 52.75 kB / 446.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.09956, allocations: 0 / 446.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.09957, allocations: 4 kB / 446.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.09957, allocations: 0 / 446.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.09968, allocations: 153.5 kB / 446.5 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.09969, allocations: 4 kB / 446.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.0997, allocations: 0 / 446.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.0997, allocations: 32 / 446.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.09971, allocations: 8 kB / 446.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.09972, allocations: 0 / 446.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.09972, allocations: 0 / 446.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.547e-05/0.09978, allocations: 135.5 kB / 446.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.09981, allocations: 77.11 kB / 446.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-06/0.09982, allocations: 0 / 446.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.272e-05/0.09988, allocations: 4 kB / 446.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.095e-05/0.0999, allocations: 4.031 kB / 446.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.09991, allocations: 0 / 446.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.856e-05/0.09993, allocations: 87.27 kB / 446.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09993, allocations: 3.938 kB / 446.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.1002, allocations: 32 kB / 446.8 MB, free: 0.9414 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.0002083/0.1004, allocations: 139.2 kB / 446.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.644e-05/0.1005, allocations: 12.22 kB / 447 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1005, allocations: 4.062 kB / 447 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.393e-05/0.1005, allocations: 29.7 kB / 447 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.1007, allocations: 11.81 kB / 447 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001841/0.1009, allocations: 96.91 kB / 447.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.1011, allocations: 0.669 MB / 447.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.012e-05/0.1011, allocations: 4 kB / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.119e-05/0.1011, allocations: 7.438 kB / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1011, allocations: 4.062 kB / 447.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of Templates: time 0.003208/0.1044, allocations: 1.063 MB / 448.8 MB, free: 14.84 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches