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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001514, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001771/0.001771, allocations: 192 kB / 18.56 MB, free: 4.434 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.361/1.361, allocations: 222.9 MB / 242.3 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.1968/0.1968, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 67.33 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09288/0.09412, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00163/0.09578, allocations: 499.6 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.09744, allocations: 1.356 MB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.09749, allocations: 4 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.092e-05/0.09751, allocations: 0 / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.503e-05/0.09755, allocations: 0 / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006628/0.09822, allocations: 218.9 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.209e-05/0.09827, allocations: 8 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.09832, allocations: 0 / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.09835, allocations: 11.92 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.304e-05/0.0984, allocations: 4 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.09841, allocations: 3.984 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004265/0.09885, allocations: 263.7 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.09887, allocations: 7.984 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.857e-05/0.09889, allocations: 0 / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.09914, allocations: 147.6 kB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.09915, allocations: 0 / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09916, allocations: 3.938 kB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.09917, allocations: 0 / 471.9 MB, free: 11.76 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.0003461/0.09952, allocations: 335.6 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.09958, allocations: 8.031 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.08e-05/0.09962, allocations: 30.75 kB / 472.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.987e-05/0.09965, allocations: 8.938 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.704e-05/0.09975, allocations: 164.4 kB / 472.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.09976, allocations: 384 / 472.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.09978, allocations: 4.359 kB / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.09989, allocations: 37.83 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.0999, allocations: 0 / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.09992, allocations: 4 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.09993, allocations: 0 / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.378e-05/0.09997, allocations: 11.92 kB / 472.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.1003, allocations: 240.9 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.391e-05/0.1004, allocations: 18.62 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.029e-05/0.1004, allocations: 12.91 kB / 472.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.225e-06/0.1004, allocations: 0 / 472.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.1004, allocations: 30.56 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1004, allocations: 0 / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001419/0.1006, allocations: 45.61 kB / 472.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.1006, allocations: 55.41 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/0.1007, allocations: 102.1 kB / 472.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.1007, allocations: 25.7 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.1008, allocations: 87.98 kB / 473.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.61e-06/0.1008, allocations: 0 / 473.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.1008, allocations: 17.72 kB / 473.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.815e-05/0.1009, allocations: 318.7 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.316e-05/0.1009, allocations: 8.125 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.8e-05/0.1009, allocations: 22.56 kB / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.523e-05/0.101, allocations: 26.52 kB / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.101, allocations: 0 / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.713e-05/0.1011, allocations: 53.62 kB / 473.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1011, allocations: 8 kB / 473.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1011, allocations: 0 / 473.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1011, allocations: 0 / 473.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.135e-05/0.1012, allocations: 4 kB / 473.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.1012, allocations: 4 kB / 473.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.1012, allocations: 0 / 473.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.1012, allocations: 4 kB / 473.5 MB, free: 9.855 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 7.085e-05/0.1013, allocations: 117.7 kB / 473.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.1013, allocations: 8.078 kB / 473.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.1015, allocations: 48.78 kB / 473.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1015, allocations: 3.984 kB / 473.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1015, allocations: 0 / 473.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1015, allocations: 4 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.1016, allocations: 149.6 kB / 473.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1016, allocations: 0 / 473.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-07/0.1016, allocations: 4.031 kB / 473.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1016, allocations: 4 kB / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1017, allocations: 4 kB / 473.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1017, allocations: 0 / 473.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1017, allocations: 0 / 473.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.283e-05/0.1018, allocations: 135.4 kB / 474 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.1018, allocations: 77.11 kB / 474.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.1018, allocations: 0 / 474.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.952e-05/0.1019, allocations: 8.031 kB / 474.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.002e-05/0.1019, allocations: 0 / 474.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1019, allocations: 0 / 474.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.167e-05/0.1019, allocations: 87.27 kB / 474.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1019, allocations: 0 / 474.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.1022, allocations: 36 kB / 474.2 MB, free: 9.082 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.0004652/0.1027, allocations: 0.7124 MB / 474.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.195e-05/0.1028, allocations: 15.98 kB / 474.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1028, allocations: 0 / 474.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.164e-05/0.1028, allocations: 25.7 kB / 474.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.1031, allocations: 6.812 kB / 474.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003606/0.1034, allocations: 130.8 kB / 475.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1037, allocations: 0.6729 MB / 475.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.331e-05/0.1037, allocations: 0 / 475.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.373e-05/0.1037, allocations: 11.44 kB / 475.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1037, allocations: 0 / 475.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.1208, allocations: 1.826 MB / 477.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.078, allocations: 3.219 kB / 477.6 MB, free: 5.652 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > 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