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.0008076/0.0008076, allocations: 94.09 kB / 17.35 MB, free: 6.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.0009589/0.0009589, allocations: 174.1 kB / 18.25 MB, free: 5.504 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.28/1.28, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2009/0.2009, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002747, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09002/0.09031, allocations: 61.92 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0003725/0.0907, allocations: 214.9 kB / 472.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.09221, allocations: 1.403 MB / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.111e-06/0.09223, allocations: 0 / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.3e-06/0.09224, allocations: 0 / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.226e-05/0.09226, allocations: 0 / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.09267, allocations: 161.5 kB / 474.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 1.894e-05/0.09269, allocations: 4 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 1.71e-05/0.09271, allocations: 0 / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.19e-05/0.09273, allocations: 11.94 kB / 474.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.332e-05/0.09276, allocations: 7.969 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-06/0.09277, allocations: 8 kB / 474.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003278/0.0931, allocations: 263.6 kB / 474.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-06/0.09312, allocations: 4 kB / 474.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.886e-05/0.09315, allocations: 29.69 kB / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.09331, allocations: 143.6 kB / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.09332, allocations: 4 kB / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09332, allocations: 0 / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.954e-06/0.09333, allocations: 0 / 474.6 MB, free: 11.02 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.0002108/0.09355, allocations: 323.6 kB / 474.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.413e-05/0.09358, allocations: 16.02 kB / 474.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.015e-05/0.09361, allocations: 34.75 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.435e-05/0.09363, allocations: 4.938 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.265e-05/0.0937, allocations: 160.4 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.519e-06/0.09371, allocations: 4.312 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-06/0.09372, allocations: 384 / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.76e-05/0.09379, allocations: 45.81 kB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-06/0.0938, allocations: 0 / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-06/0.09381, allocations: 0 / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-06/0.09382, allocations: 0 / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.941e-05/0.09384, allocations: 8 kB / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002331/0.09408, allocations: 244.9 kB / 475.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.504e-05/0.09412, allocations: 22.52 kB / 475.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.043e-05/0.09413, allocations: 4.859 kB / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-06/0.09414, allocations: 0 / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.09416, allocations: 34.56 kB / 475.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.09417, allocations: 0 / 475.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 8.99e-05/0.09426, allocations: 45.66 kB / 475.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.0943, allocations: 51.41 kB / 475.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.151e-05/0.09436, allocations: 97.8 kB / 475.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.09438, allocations: 25.7 kB / 475.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.099e-05/0.09442, allocations: 88.27 kB / 475.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.198e-06/0.09443, allocations: 0 / 475.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.09446, allocations: 21.95 kB / 475.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.78e-05/0.09456, allocations: 322.7 kB / 476.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.09457, allocations: 3.938 kB / 476.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.916e-05/0.09459, allocations: 18.58 kB / 476.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.183e-05/0.09463, allocations: 30.52 kB / 476.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.09464, allocations: 4 kB / 476.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.801e-05/0.09472, allocations: 49.62 kB / 476.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.09474, allocations: 6.5 kB / 476.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.09475, allocations: 0 / 476.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.514e-06/0.09476, allocations: 4 kB / 476.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.65e-05/0.0948, allocations: 7.984 kB / 476.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.09481, allocations: 0 / 476.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.09483, allocations: 8 kB / 476.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.09484, allocations: 0 / 476.2 MB, free: 9.117 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 5.294e-05/0.0949, allocations: 113.9 kB / 476.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.09493, allocations: 4 kB / 476.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.845e-05/0.09503, allocations: 56.78 kB / 476.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.09504, allocations: 0 / 476.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.09505, allocations: 0 / 476.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-06/0.09505, allocations: 0 / 476.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.09519, allocations: 153.7 kB / 476.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.0952, allocations: 0 / 476.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-06/0.0952, allocations: 3.984 kB / 476.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09521, allocations: 0 / 476.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-06/0.09522, allocations: 4 kB / 476.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.09522, allocations: 0 / 476.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.09523, allocations: 4 kB / 476.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.006e-05/0.09531, allocations: 127.4 kB / 476.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.719e-05/0.09535, allocations: 85.14 kB / 476.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.021e-05/0.09537, allocations: 3.984 kB / 476.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.856e-05/0.09542, allocations: 0 / 476.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.09544, allocations: 3.938 kB / 476.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.09545, allocations: 4 kB / 476.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.84e-05/0.09548, allocations: 83.28 kB / 476.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09549, allocations: 0 / 476.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.09575, allocations: 40 kB / 476.9 MB, free: 8.344 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.0004344/0.09619, allocations: 0.7052 MB / 477.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.628e-05/0.09626, allocations: 19.88 kB / 477.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09627, allocations: 0 / 477.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.45e-05/0.09629, allocations: 29.7 kB / 477.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000184/0.09648, allocations: 4.219 kB / 477.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.0968, allocations: 132.4 kB / 477.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.09701, allocations: 0.6731 MB / 478.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.907e-05/0.09703, allocations: 0 / 478.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.09705, allocations: 11.44 kB / 478.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09706, allocations: 0 / 478.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.013/2.11, allocations: 1.654 MB / 480.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003635/2.11, allocations: 209.2 kB / 480.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.909/5.019, allocations: 0 / 480.3 MB, free: 4.875 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