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.001522/0.001522, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001681/0.001681, allocations: 191 kB / 19.34 MB, free: 3.766 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.339/1.339, allocations: 222.9 MB / 243 MB, free: 15.09 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.2001/0.2001, allocations: 44.17 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 65.55 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1141, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001564/0.1157, allocations: 498.3 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1173, allocations: 1.352 MB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.006e-05/0.1173, allocations: 3.938 kB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.1173, allocations: 4 kB / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.941e-05/0.1173, allocations: 4 kB / 472.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006426/0.118, allocations: 214.4 kB / 472.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.016e-05/0.118, allocations: 8 kB / 472.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.845e-05/0.1181, allocations: 4 kB / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.802e-05/0.1181, allocations: 7.969 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.28e-05/0.1181, allocations: 4 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.658e-06/0.1182, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003876/0.1186, allocations: 271.6 kB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.053e-05/0.1186, allocations: 0 / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.1186, allocations: 11.94 kB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.1189, allocations: 143.7 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1189, allocations: 3.938 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1189, allocations: 0 / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1189, allocations: 0 / 473.2 MB, free: 11.13 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.0003362/0.1192, allocations: 331.6 kB / 473.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.1193, allocations: 8.031 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.1193, allocations: 4.938 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.186e-05/0.1194, allocations: 164.4 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1194, allocations: 4.375 kB / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.1194, allocations: 384 / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.449e-05/0.1195, allocations: 42 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.1195, allocations: 0 / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.1195, allocations: 4 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1196, allocations: 3.938 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.076e-05/0.1196, allocations: 4 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003098/0.1199, allocations: 244.9 kB / 474 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.731e-05/0.12, allocations: 30.52 kB / 474 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.554e-05/0.12, allocations: 8.859 kB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-06/0.12, allocations: 0 / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.12, allocations: 30.56 kB / 474.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.12, allocations: 0 / 474.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.1202, allocations: 41.69 kB / 474.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.1202, allocations: 51.53 kB / 474.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.457e-05/0.1203, allocations: 105.8 kB / 474.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.1203, allocations: 25.7 kB / 474.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.263e-05/0.1203, allocations: 84.08 kB / 474.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.751e-06/0.1204, allocations: 3.906 kB / 474.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.1204, allocations: 21.7 kB / 474.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.654e-05/0.1205, allocations: 314.8 kB / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/0.1205, allocations: 4 kB / 474.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.214e-05/0.1205, allocations: 22.7 kB / 474.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.041e-05/0.1206, allocations: 30.5 kB / 474.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1206, allocations: 0 / 474.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.811e-05/0.1207, allocations: 49.64 kB / 474.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.1207, allocations: 8.094 kB / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.1207, allocations: 0 / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.1207, allocations: 0 / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.769e-05/0.1208, allocations: 11.98 kB / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.1208, allocations: 0 / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.55e-05/0.1208, allocations: 0 / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1208, allocations: 4 kB / 474.8 MB, free: 9.266 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 5.758e-05/0.1209, allocations: 109.8 kB / 474.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.1209, allocations: 0 / 474.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.121, allocations: 56.7 kB / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.121, allocations: 0 / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.121, allocations: 4 kB / 475 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.121, allocations: 4.078 kB / 475 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.1212, allocations: 149.6 kB / 475.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1212, allocations: 4 kB / 475.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1212, allocations: 0 / 475.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1212, allocations: 0 / 475.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-06/0.1212, allocations: 4.031 kB / 475.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1212, allocations: 3.938 kB / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1212, allocations: 0 / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.034e-05/0.1213, allocations: 139.3 kB / 475.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.543e-05/0.1213, allocations: 85.03 kB / 475.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-06/0.1214, allocations: 0 / 475.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.49e-05/0.1214, allocations: 8 kB / 475.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.1214, allocations: 4.031 kB / 475.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1214, allocations: 0 / 475.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.942e-05/0.1215, allocations: 83.28 kB / 475.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1215, allocations: 0 / 475.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.1218, allocations: 39.98 kB / 475.5 MB, free: 8.484 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.0002343/0.122, allocations: 135.2 kB / 475.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.164e-05/0.1221, allocations: 15.94 kB / 475.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1221, allocations: 4.281 kB / 475.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.874e-05/0.1221, allocations: 33.69 kB / 475.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.1223, allocations: 3.938 kB / 475.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001921/0.1225, allocations: 88.94 kB / 475.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1228, allocations: 0.6729 MB / 476.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.111e-05/0.1228, allocations: 4 kB / 476.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.1228, allocations: 7.438 kB / 476.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1228, allocations: 4.062 kB / 476.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of Templates: time 0.003012/0.1258, allocations: 1.058 MB / 477.5 MB, free: 6.395 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 -s gbode -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