Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_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.0008061/0.0008061, allocations: 97.69 kB / 18.01 MB, free: 5.734 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.000899/0.0008991, allocations: 177.7 kB / 18.91 MB, free: 4.871 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.35/1.35, allocations: 223.3 MB / 243 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1875/0.1875, allocations: 44.26 MB / 338.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003707, allocations: 14.22 kB / 411 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 61.91 MB / 472.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0006145/0.1104, allocations: 223 kB / 473.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.1123, allocations: 1.399 MB / 474.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.492e-05/0.1123, allocations: 0 / 474.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.1123, allocations: 0 / 474.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.218e-05/0.1124, allocations: 0 / 474.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005904/0.113, allocations: 153.9 kB / 474.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.964e-05/0.113, allocations: 8 kB / 474.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.286e-05/0.1131, allocations: 0 / 474.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.1131, allocations: 3.938 kB / 474.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.1131, allocations: 11.98 kB / 474.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.1132, allocations: 0 / 474.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000454/0.1136, allocations: 271.6 kB / 475 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.1136, allocations: 3.984 kB / 475 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.124e-05/0.1137, allocations: 37.69 kB / 475 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1138, allocations: 75.83 kB / 475.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1138, allocations: 0 / 475.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1139, allocations: 0 / 475.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1139, allocations: 4 kB / 475.1 MB, free: 11.18 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003495/0.1142, allocations: 331.5 kB / 475.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1143, allocations: 8.031 kB / 475.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.1143, allocations: 8.938 kB / 475.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.1144, allocations: 168.4 kB / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.1144, allocations: 384 / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.1145, allocations: 384 / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.083e-05/0.1146, allocations: 37.95 kB / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.1146, allocations: 0 / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1146, allocations: 0 / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1146, allocations: 0 / 475.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.197e-05/0.1146, allocations: 4 kB / 475.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.1148, allocations: 153.7 kB / 475.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.189e-05/0.1148, allocations: 18.61 kB / 475.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.725e-05/0.1148, allocations: 4.859 kB / 475.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.1149, allocations: 0 / 475.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1149, allocations: 42.44 kB / 475.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1149, allocations: 0 / 475.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.00013/0.115, allocations: 45.66 kB / 475.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.1151, allocations: 51.41 kB / 475.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.526e-05/0.1151, allocations: 93.86 kB / 476 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.1152, allocations: 25.7 kB / 476 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.782e-05/0.1152, allocations: 84.14 kB / 476.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.1152, allocations: 0 / 476.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.1153, allocations: 9.719 kB / 476.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.212e-05/0.1154, allocations: 318.8 kB / 476.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.1154, allocations: 4.25 kB / 476.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.1154, allocations: 3.938 kB / 476.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.606e-05/0.1154, allocations: 8.859 kB / 476.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1154, allocations: 0 / 476.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.615e-05/0.1155, allocations: 41.64 kB / 476.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1155, allocations: 7.938 kB / 476.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1155, allocations: 0 / 476.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1155, allocations: 0 / 476.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.028e-05/0.1156, allocations: 7.984 kB / 476.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.1156, allocations: 4.094 kB / 476.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.548e-05/0.1156, allocations: 0 / 476.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.1157, allocations: 3.938 kB / 476.5 MB, free: 9.5 MB / 350.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 6.264e-05/0.1157, allocations: 110.1 kB / 476.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.004e-05/0.1157, allocations: 3.938 kB / 476.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.1159, allocations: 56.7 kB / 476.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1159, allocations: 0 / 476.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1159, allocations: 0 / 476.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1159, allocations: 3.984 kB / 476.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.148e-05/0.116, allocations: 153.6 kB / 476.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.116, allocations: 0 / 476.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.116, allocations: 0 / 476.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.116, allocations: 3.938 kB / 476.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.116, allocations: 4 kB / 476.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.116, allocations: 0 / 476.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.116, allocations: 0 / 476.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.565e-05/0.1161, allocations: 65.11 kB / 476.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.1162, allocations: 88.94 kB / 477 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.1162, allocations: 4 kB / 477 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.108e-05/0.1163, allocations: 4 kB / 477 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.421e-05/0.1163, allocations: 0 / 477 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-06/0.1163, allocations: 0 / 477 MB, free: 8.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.1163, allocations: 83.31 kB / 477.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1163, allocations: 0 / 477.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002532/0.1166, allocations: 43.98 kB / 477.1 MB, free: 8.785 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.0002516/0.1169, allocations: 135.8 kB / 477.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.669e-05/0.1169, allocations: 4 kB / 477.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1169, allocations: 0 / 477.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.854e-05/0.117, allocations: 37.62 kB / 477.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.1171, allocations: 6.453 kB / 477.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002066/0.1173, allocations: 116.6 kB / 477.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.1176, allocations: 0.6731 MB / 478.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.285e-05/0.1176, allocations: 7.438 kB / 478.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1176, allocations: 4 kB / 478.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of Templates: time 0.00232/0.1199, allocations: 0.8934 MB / 479 MB, free: 6.84 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches