Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_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.00145/0.00145, allocations: 106.2 kB / 16.27 MB, free: 6.41 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.001636/0.001636, allocations: 191.1 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1949/0.1949, allocations: 43.53 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 67.69 kB / 382.8 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08469, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001608/0.08633, allocations: 0.4935 MB / 441.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.08767, allocations: 1.379 MB / 442.5 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.955e-05/0.08771, allocations: 8 kB / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.27e-05/0.08774, allocations: 0 / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.772e-05/0.08778, allocations: 0 / 442.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006114/0.0884, allocations: 215.6 kB / 442.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.214e-05/0.08845, allocations: 11.98 kB / 442.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.482e-05/0.08849, allocations: 4 kB / 442.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.814e-05/0.08851, allocations: 3.984 kB / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.254e-05/0.08856, allocations: 7.984 kB / 442.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.08857, allocations: 0 / 442.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003259/0.0889, allocations: 271.5 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.08893, allocations: 7.938 kB / 443 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.08895, allocations: 11.98 kB / 443 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.08913, allocations: 135.7 kB / 443.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.08914, allocations: 0 / 443.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.08915, allocations: 0 / 443.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.08916, allocations: 0 / 443.2 MB, free: 4.27 MB / 318.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.0002576/0.08942, allocations: 343.7 kB / 443.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.08946, allocations: 15.89 kB / 443.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.026e-05/0.08948, allocations: 30.75 kB / 443.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.144e-05/0.08951, allocations: 0.9375 kB / 443.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.704e-05/0.08956, allocations: 164.4 kB / 443.7 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.08958, allocations: 4.375 kB / 443.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.08959, allocations: 8.312 kB / 443.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.539e-05/0.08968, allocations: 37.81 kB / 443.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.08969, allocations: 0 / 443.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.0897, allocations: 3.938 kB / 443.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.08971, allocations: 0 / 443.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.901e-05/0.08975, allocations: 8 kB / 443.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002404/0.08999, allocations: 244.9 kB / 444 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.89e-05/0.09003, allocations: 18.58 kB / 444 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.09005, allocations: 8.859 kB / 444 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.09006, allocations: 0 / 444 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.09008, allocations: 38.56 kB / 444.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.09009, allocations: 0 / 444.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001107/0.0902, allocations: 33.78 kB / 444.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.704e-05/0.09023, allocations: 55.44 kB / 444.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.991e-05/0.09027, allocations: 97.86 kB / 444.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-06/0.09028, allocations: 25.7 kB / 444.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.04e-05/0.09031, allocations: 84.05 kB / 444.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-06/0.09032, allocations: 7.906 kB / 444.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.09035, allocations: 17.7 kB / 444.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.745e-05/0.09039, allocations: 318.8 kB / 444.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-06/0.09041, allocations: 4.125 kB / 444.7 MB, free: 2.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.671e-05/0.09043, allocations: 22.56 kB / 444.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.618e-05/0.09046, allocations: 34.5 kB / 444.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.09046, allocations: 4 kB / 444.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.416e-05/0.09052, allocations: 49.64 kB / 444.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.09054, allocations: 4 kB / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.09055, allocations: 0 / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.09056, allocations: 4 kB / 444.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.978e-05/0.09061, allocations: 7.984 kB / 444.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.09062, allocations: 7.875 kB / 444.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.457e-05/0.09063, allocations: 0 / 444.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.09065, allocations: 4 kB / 444.8 MB, free: 2.348 MB / 318.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 3.515e-05/0.09069, allocations: 113.8 kB / 444.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.09071, allocations: 8 kB / 444.9 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.361e-05/0.0908, allocations: 44.81 kB / 445 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.09081, allocations: 0 / 445 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.09082, allocations: 3.938 kB / 445 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.09082, allocations: 0 / 445 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.859e-05/0.09092, allocations: 149.6 kB / 445.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.09093, allocations: 4 kB / 445.1 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.09093, allocations: 4.031 kB / 445.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.09094, allocations: 0 / 445.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.539e-06/0.09095, allocations: 0 / 445.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.09095, allocations: 3.938 kB / 445.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09096, allocations: 0 / 445.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.149e-05/0.09101, allocations: 131.5 kB / 445.3 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.393e-05/0.09103, allocations: 85.03 kB / 445.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-06/0.09105, allocations: 4 kB / 445.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.278e-05/0.0911, allocations: 4.031 kB / 445.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.09112, allocations: 0 / 445.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.09113, allocations: 0 / 445.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.489e-05/0.09115, allocations: 83.28 kB / 445.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09115, allocations: 0 / 445.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002602/0.09142, allocations: 43.98 kB / 445.5 MB, free: 1.578 MB / 318.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.0003219/0.09174, allocations: 0.7047 MB / 446.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.031e-05/0.09182, allocations: 12 kB / 446.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09183, allocations: 0 / 446.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.45e-05/0.09186, allocations: 33.64 kB / 446.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.09207, allocations: 0 / 446.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.09241, allocations: 134.9 kB / 446.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.09256, allocations: 0.6729 MB / 447 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.265e-05/0.09259, allocations: 4 kB / 447 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.837e-05/0.09261, allocations: 7.438 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09261, allocations: 0 / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.12, allocations: 1.829 MB / 448.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.39/8.51, allocations: 8.797 kB / 448.9 MB, free: 14.09 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches