Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008429/0.0008428, allocations: 175.1 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007242/0.0007242, allocations: 81.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2925/0.2925, allocations: 43.57 MB / 363.1 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003406, allocations: 12 kB / 432 MB, free: 5.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09803, allocations: 58.85 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005147/0.09858, allocations: 228.4 kB / 491 MB, free: 10.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1001, allocations: 1.354 MB / 492.4 MB, free: 9.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.626e-05/0.1001, allocations: 0 / 492.4 MB, free: 9.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.1001, allocations: 3.938 kB / 492.4 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.205e-05/0.1002, allocations: 0 / 492.4 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.1007, allocations: 155.7 kB / 492.5 MB, free: 8.914 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.164e-05/0.1007, allocations: 0 / 492.5 MB, free: 8.914 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.72e-05/0.1007, allocations: 7.938 kB / 492.6 MB, free: 8.906 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.1008, allocations: 3.984 kB / 492.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.966e-05/0.1008, allocations: 11.98 kB / 492.6 MB, free: 8.891 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.1008, allocations: 0 / 492.6 MB, free: 8.891 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003531/0.1012, allocations: 259.6 kB / 492.8 MB, free: 8.637 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.1012, allocations: 4 kB / 492.8 MB, free: 8.633 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.1012, allocations: 25.7 kB / 492.9 MB, free: 8.602 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.1013, allocations: 83.81 kB / 492.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1014, allocations: 0 / 492.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1014, allocations: 0 / 492.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1014, allocations: 0 / 492.9 MB, free: 8.52 MB / 378.7 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.0002884/0.1017, allocations: 339.5 kB / 493.3 MB, free: 8.141 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1017, allocations: 8.031 kB / 493.3 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.1017, allocations: 4.875 kB / 493.3 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.924e-05/0.1018, allocations: 164.4 kB / 493.4 MB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.1019, allocations: 4.375 kB / 493.4 MB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.1019, allocations: 384 / 493.4 MB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.5e-05/0.1019, allocations: 37.81 kB / 493.5 MB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.102, allocations: 0 / 493.5 MB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.102, allocations: 0 / 493.5 MB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.102, allocations: 3.938 kB / 493.5 MB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/0.102, allocations: 4 kB / 493.5 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.1021, allocations: 153.7 kB / 493.6 MB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.09e-05/0.1022, allocations: 18.52 kB / 493.7 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.1022, allocations: 16.95 kB / 493.7 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.1022, allocations: 0 / 493.7 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.1022, allocations: 34.5 kB / 493.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 6.92e-07/0.1022, allocations: 0 / 493.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001139/0.1024, allocations: 33.7 kB / 493.7 MB, free: 7.547 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.1024, allocations: 59.47 kB / 493.8 MB, free: 7.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.723e-05/0.1025, allocations: 101.8 kB / 493.9 MB, free: 7.367 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1025, allocations: 25.7 kB / 493.9 MB, free: 7.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.291e-05/0.1025, allocations: 80.14 kB / 494 MB, free: 7.254 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1025, allocations: 288 / 494 MB, free: 7.254 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.1025, allocations: 0 / 494 MB, free: 7.254 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.711e-05/0.1026, allocations: 310.8 kB / 494.3 MB, free: 6.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.216e-06/0.1026, allocations: 4.125 kB / 494.3 MB, free: 6.938 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.1027, allocations: 4 kB / 494.3 MB, free: 6.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.168e-05/0.1027, allocations: 8.859 kB / 494.3 MB, free: 6.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1027, allocations: 0 / 494.3 MB, free: 6.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.347e-05/0.1027, allocations: 49.53 kB / 494.4 MB, free: 6.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1028, allocations: 4 kB / 494.4 MB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1028, allocations: 11.88 kB / 494.4 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.696e-06/0.1028, allocations: 0 / 494.4 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.766e-05/0.1028, allocations: 4 kB / 494.4 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1029, allocations: 4.094 kB / 494.4 MB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.165e-05/0.1029, allocations: 0 / 494.4 MB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.1029, allocations: 0 / 494.4 MB, free: 6.844 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.1029, allocations: 109.8 kB / 494.5 MB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.696e-06/0.103, allocations: 7.938 kB / 494.5 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.1031, allocations: 44.81 kB / 494.6 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1031, allocations: 4.031 kB / 494.6 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1031, allocations: 0 / 494.6 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1031, allocations: 0 / 494.6 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.707e-05/0.1032, allocations: 149.7 kB / 494.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.1032, allocations: 0 / 494.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-06/0.1032, allocations: 7.875 kB / 494.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1032, allocations: 0 / 494.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.1032, allocations: 0 / 494.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1032, allocations: 7.938 kB / 494.7 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1032, allocations: 0 / 494.7 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.04e-05/0.1033, allocations: 65.12 kB / 494.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.709e-05/0.1033, allocations: 85.03 kB / 494.9 MB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-06/0.1034, allocations: 0 / 494.9 MB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.079e-05/0.1034, allocations: 4 kB / 494.9 MB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.1034, allocations: 3.984 kB / 494.9 MB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.1034, allocations: 0 / 494.9 MB, free: 6.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.823e-05/0.1035, allocations: 83.31 kB / 495 MB, free: 6.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1035, allocations: 0 / 495 MB, free: 6.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.1037, allocations: 40 kB / 495 MB, free: 6.141 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002311/0.104, allocations: 143.2 kB / 495.1 MB, free: 5.992 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.471e-05/0.104, allocations: 7.938 kB / 495.1 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.104, allocations: 0 / 495.1 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.868e-05/0.1041, allocations: 33.7 kB / 495.2 MB, free: 5.945 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.1042, allocations: 3.938 kB / 495.2 MB, free: 5.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001912/0.1044, allocations: 112.7 kB / 495.3 MB, free: 5.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.1046, allocations: 0.6731 MB / 496 MB, free: 5.102 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.1046, allocations: 7.438 kB / 496 MB, free: 5.098 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1046, allocations: 0 / 496 MB, free: 5.098 MB / 378.7 MB Notification: Performance of Templates: time 0.001885/0.1065, allocations: 0.9011 MB / 496.9 MB, free: 4.195 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches