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.001385/0.001385, allocations: 107.8 kB / 17.33 MB, free: 6.02 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.001293/0.001293, allocations: 193.3 kB / 18.24 MB, free: 5.109 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.329/1.329, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2015/0.2015, allocations: 44.18 MB / 336.2 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.48 kB / 407.9 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 60.82 MB / 468.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.00175/0.1101, allocations: 0.5488 MB / 469.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.1118, allocations: 1.372 MB / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.762e-05/0.1118, allocations: 0 / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.241e-05/0.1119, allocations: 0 / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.579e-05/0.1119, allocations: 0 / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006152/0.1125, allocations: 191.9 kB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.237e-05/0.1126, allocations: 15.98 kB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.788e-05/0.1126, allocations: 0 / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.715e-05/0.1126, allocations: 3.938 kB / 470.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.745e-05/0.1127, allocations: 4 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.1127, allocations: 4 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004223/0.1131, allocations: 275.6 kB / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.808e-06/0.1131, allocations: 0 / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.1132, allocations: 7.984 kB / 471.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.1133, allocations: 139.7 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1134, allocations: 0 / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1134, allocations: 0 / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1134, allocations: 0 / 471.3 MB, free: 12.2 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.0003251/0.1137, allocations: 331.6 kB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.1137, allocations: 12.03 kB / 471.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.369e-05/0.1138, allocations: 4.938 kB / 471.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.1139, allocations: 164.4 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1139, allocations: 384 / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.1139, allocations: 384 / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.135e-05/0.114, allocations: 34.02 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.114, allocations: 0 / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.114, allocations: 0 / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1141, allocations: 0 / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.266e-05/0.1141, allocations: 15.94 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.1142, allocations: 149.6 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.863e-05/0.1143, allocations: 18.61 kB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.1143, allocations: 4.859 kB / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1143, allocations: 4 kB / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.1144, allocations: 38.56 kB / 472 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1144, allocations: 0 / 472 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001188/0.1145, allocations: 41.62 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.1145, allocations: 55.41 kB / 472.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.882e-05/0.1146, allocations: 89.86 kB / 472.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1146, allocations: 29.7 kB / 472.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.714e-05/0.1146, allocations: 84.14 kB / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.1147, allocations: 0 / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.1147, allocations: 9.719 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.258e-05/0.1148, allocations: 319.1 kB / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.1148, allocations: 11.88 kB / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.1148, allocations: 0 / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.766e-05/0.1149, allocations: 12.86 kB / 472.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1149, allocations: 3.938 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.073e-05/0.1149, allocations: 33.7 kB / 472.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.1149, allocations: 10.75 kB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1149, allocations: 4 kB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.857e-06/0.115, allocations: 4.094 kB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.469e-05/0.115, allocations: 7.984 kB / 472.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.115, allocations: 0 / 472.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.266e-05/0.115, allocations: 288 / 472.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.1151, allocations: 0 / 472.7 MB, free: 10.51 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 5.94e-05/0.1151, allocations: 105.8 kB / 472.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-06/0.1151, allocations: 7.938 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1153, allocations: 64.62 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1153, allocations: 0 / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1153, allocations: 0 / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.1153, allocations: 0 / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.095e-05/0.1154, allocations: 153.7 kB / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1154, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1154, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1154, allocations: 3.938 kB / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1154, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.1154, allocations: 4 kB / 473 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1154, allocations: 4.031 kB / 473.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.898e-05/0.1155, allocations: 65.03 kB / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.1156, allocations: 81.05 kB / 473.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.1156, allocations: 0 / 473.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.1156, allocations: 0 / 473.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.081e-05/0.1157, allocations: 7.938 kB / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1157, allocations: 0 / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.223e-05/0.1157, allocations: 83.31 kB / 473.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1157, allocations: 4 kB / 473.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.116, allocations: 39.98 kB / 473.3 MB, free: 9.797 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.0002455/0.1162, allocations: 131.8 kB / 473.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.574e-05/0.1163, allocations: 15.92 kB / 473.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1163, allocations: 0 / 473.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.091e-05/0.1163, allocations: 29.86 kB / 473.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.1165, allocations: 6.688 kB / 473.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002044/0.1167, allocations: 80.94 kB / 473.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.1169, allocations: 0.6768 MB / 474.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.516e-05/0.1169, allocations: 7.875 kB / 474.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.117, allocations: 11.44 kB / 474.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.117, allocations: 0 / 474.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of Templates: time 0.003378/0.1203, allocations: 1.069 MB / 475.4 MB, free: 7.707 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/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