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.000988/0.000988, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.0009951/0.0009951, allocations: 192 kB / 18.56 MB, free: 4.562 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.297/1.297, allocations: 222.9 MB / 242.2 MB, free: 15.18 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.1958/0.1958, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 65.14 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001555/0.1042, allocations: 498.9 kB / 469.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1058, allocations: 1.348 MB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.035e-05/0.1058, allocations: 0 / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.361e-05/0.1058, allocations: 4 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.852e-05/0.1059, allocations: 3.938 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.1065, allocations: 219.2 kB / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.3e-05/0.1066, allocations: 4 kB / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.361e-05/0.1066, allocations: 0 / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.244e-05/0.1066, allocations: 15.92 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.137e-05/0.1067, allocations: 3.938 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1067, allocations: 4 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000383/0.1071, allocations: 263.6 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.1071, allocations: 4 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.141e-05/0.1071, allocations: 7.984 kB / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.1073, allocations: 143.7 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1073, allocations: 0 / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1073, allocations: 0 / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1074, allocations: 0 / 471.7 MB, free: 11.87 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.000325/0.1077, allocations: 338.5 kB / 472.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.1077, allocations: 8.031 kB / 472.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.1078, allocations: 4.922 kB / 472.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.375e-05/0.1079, allocations: 164.3 kB / 472.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1079, allocations: 4.375 kB / 472.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.1079, allocations: 4.375 kB / 472.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.108, allocations: 42 kB / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.108, allocations: 0 / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.108, allocations: 0 / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.108, allocations: 4 kB / 472.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.803e-05/0.1081, allocations: 4 kB / 472.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003326/0.1084, allocations: 244.9 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.611e-05/0.1084, allocations: 22.52 kB / 472.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.1085, allocations: 8.922 kB / 472.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.1085, allocations: 0 / 472.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.1085, allocations: 34.55 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1085, allocations: 0 / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001176/0.1086, allocations: 33.7 kB / 472.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.1087, allocations: 59.34 kB / 472.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.505e-05/0.1087, allocations: 101.8 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.1088, allocations: 25.7 kB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.794e-05/0.1088, allocations: 96.33 kB / 472.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.283e-06/0.1088, allocations: 7.906 kB / 472.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.1089, allocations: 13.72 kB / 472.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.109, allocations: 314.8 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.158e-05/0.109, allocations: 0 / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.423e-05/0.109, allocations: 34.62 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.109, allocations: 26.52 kB / 473.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.109, allocations: 0 / 473.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.588e-05/0.1091, allocations: 49.62 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1091, allocations: 4 kB / 473.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1091, allocations: 8.094 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1092, allocations: 0 / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.156e-05/0.1092, allocations: 4 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1092, allocations: 0 / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.1092, allocations: 4 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.1092, allocations: 0 / 473.4 MB, free: 10 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 6.808e-05/0.1093, allocations: 117.8 kB / 473.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.1093, allocations: 0 / 473.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.1094, allocations: 52.7 kB / 473.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1095, allocations: 0 / 473.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1095, allocations: 0 / 473.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1095, allocations: 4.094 kB / 473.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.1096, allocations: 157.6 kB / 473.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1096, allocations: 3.984 kB / 473.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1096, allocations: 0 / 473.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1096, allocations: 0 / 473.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1097, allocations: 4 kB / 473.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1097, allocations: 4.031 kB / 473.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1097, allocations: 3.984 kB / 473.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.903e-05/0.1098, allocations: 139.4 kB / 473.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.1098, allocations: 77.11 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-06/0.1098, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.192e-05/0.1099, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.1099, allocations: 7.938 kB / 473.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.1099, allocations: 4.031 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.09e-05/0.1099, allocations: 75.28 kB / 474 MB, free: 9.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1099, allocations: 0 / 474 MB, free: 9.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.1102, allocations: 43.98 kB / 474 MB, free: 9.219 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.000222/0.1104, allocations: 131.2 kB / 474.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.007e-05/0.1105, allocations: 11.98 kB / 474.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1105, allocations: 8.156 kB / 474.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.537e-05/0.1106, allocations: 37.64 kB / 474.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.1108, allocations: 11.94 kB / 474.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001855/0.111, allocations: 79.06 kB / 474.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1112, allocations: 0.6768 MB / 475 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.384e-05/0.1113, allocations: 0 / 475 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.1113, allocations: 11.44 kB / 475 MB, free: 8.191 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1113, allocations: 4.062 kB / 475 MB, free: 8.188 MB / 350.1 MB Notification: Performance of Templates: time 0.003286/0.1146, allocations: 1.058 MB / 476.1 MB, free: 7.129 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/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