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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",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.001209/0.001209, allocations: 104.7 kB / 17.63 MB, free: 5.336 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.001325/0.001325, allocations: 192 kB / 18.55 MB, free: 4.43 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.1941/0.1941, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.56 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09269, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001497/0.09421, allocations: 491.8 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.09573, allocations: 1.352 MB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.904e-05/0.09576, allocations: 8 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.231e-05/0.09578, allocations: 0 / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.883e-05/0.09581, allocations: 3.938 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006006/0.09642, allocations: 211 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.514e-05/0.09647, allocations: 7.984 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.129e-05/0.0965, allocations: 4 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.09653, allocations: 7.875 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.314e-05/0.09657, allocations: 11.98 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.09659, allocations: 0 / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003819/0.09698, allocations: 267.6 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.097, allocations: 3.984 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.979e-05/0.09703, allocations: 11.98 kB / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.09721, allocations: 135.7 kB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.09722, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.22e-07/0.09723, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.09724, allocations: 0 / 471.8 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003203/0.09756, allocations: 331.6 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.0976, allocations: 12.02 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.09764, allocations: 38.75 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.035e-05/0.09767, allocations: 4.938 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.534e-05/0.09777, allocations: 168.2 kB / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.09779, allocations: 384 / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-06/0.0978, allocations: 384 / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.47e-05/0.09787, allocations: 33.83 kB / 472.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.09789, allocations: 0 / 472.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.0979, allocations: 3.984 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-06/0.09791, allocations: 0 / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.09793, allocations: 4 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.09806, allocations: 149.7 kB / 472.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.204e-05/0.0981, allocations: 22.55 kB / 472.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.09813, allocations: 8.844 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.09814, allocations: 4.062 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.09816, allocations: 34.5 kB / 472.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.09817, allocations: 0 / 472.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001172/0.09829, allocations: 37.83 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.09833, allocations: 55.41 kB / 472.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.09839, allocations: 89.86 kB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.09841, allocations: 25.7 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.992e-05/0.09845, allocations: 96.05 kB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.09847, allocations: 288 / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.0985, allocations: 13.72 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.67e-05/0.0986, allocations: 314.8 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.09861, allocations: 8.062 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-06/0.09863, allocations: 0 / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.268e-05/0.09865, allocations: 8.859 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.09866, allocations: 0 / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.187e-05/0.09872, allocations: 45.62 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.09874, allocations: 4 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.09875, allocations: 3.938 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.408e-06/0.09877, allocations: 0 / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.245e-05/0.09882, allocations: 8.031 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.09883, allocations: 4 kB / 473.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/0.09885, allocations: 3.938 kB / 473.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.09887, allocations: 0 / 473.3 MB, free: 10.03 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.708e-05/0.09893, allocations: 109.8 kB / 473.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.09895, allocations: 7.922 kB / 473.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.09907, allocations: 56.77 kB / 473.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.09908, allocations: 0 / 473.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.09908, allocations: 0 / 473.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.09909, allocations: 0 / 473.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.461e-05/0.09918, allocations: 153.6 kB / 473.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.09919, allocations: 0 / 473.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-06/0.0992, allocations: 3.938 kB / 473.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.0992, allocations: 0 / 473.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.09921, allocations: 4 kB / 473.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.09922, allocations: 0 / 473.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.09922, allocations: 0 / 473.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.034e-05/0.0993, allocations: 69.09 kB / 473.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.09933, allocations: 81.05 kB / 473.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-06/0.09935, allocations: 0 / 473.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.03e-05/0.09941, allocations: 4 kB / 473.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.09943, allocations: 3.984 kB / 473.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.09944, allocations: 0 / 473.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.031e-05/0.09948, allocations: 83.31 kB / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09948, allocations: 0 / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.09972, allocations: 36 kB / 473.9 MB, free: 9.324 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.0004275/0.1002, allocations: 0.6358 MB / 474.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.596e-05/0.1002, allocations: 16.05 kB / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1002, allocations: 0 / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.364e-05/0.1003, allocations: 29.7 kB / 474.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1004, allocations: 0 / 474.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003062/0.1007, allocations: 130.5 kB / 474.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.1009, allocations: 0.669 MB / 475.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.562e-05/0.101, allocations: 4 kB / 475.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.101, allocations: 11.56 kB / 475.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of SimCode: time 1.453e-06/0.101, allocations: 0 / 475.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.1184, allocations: 1.836 MB / 477.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.371/7.49, allocations: 1.031 kB / 477.3 MB, free: 5.961 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > 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