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.001141/0.001141, allocations: 90.5 kB / 16.98 MB, free: 5.941 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.00145/0.00145, allocations: 181.8 kB / 17.87 MB, free: 5.609 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.323/1.323, allocations: 223.2 MB / 241.8 MB, free: 388 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.1947/0.1947, allocations: 44.23 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003108, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09848, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005012/0.09902, allocations: 218.9 kB / 471.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1006, allocations: 1.309 MB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.1006, allocations: 0 / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.1006, allocations: 0 / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.361e-05/0.1006, allocations: 0 / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.1011, allocations: 150.6 kB / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.611e-05/0.1012, allocations: 7.984 kB / 473.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.1012, allocations: 4 kB / 473.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.535e-05/0.1012, allocations: 0 / 473.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.199e-05/0.1013, allocations: 4 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.1013, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003811/0.1017, allocations: 255.6 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-06/0.1017, allocations: 0 / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.1017, allocations: 29.69 kB / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.1019, allocations: 87.81 kB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.1019, allocations: 0 / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1019, allocations: 7.938 kB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1019, allocations: 0 / 473.6 MB, free: 11.59 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.000294/0.1022, allocations: 331.4 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1022, allocations: 8.031 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.965e-05/0.1023, allocations: 30.56 kB / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.002e-05/0.1023, allocations: 0 / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.834e-05/0.1024, allocations: 167 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.1024, allocations: 4 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.1024, allocations: 7.938 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.761e-05/0.1025, allocations: 37.64 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.1025, allocations: 0 / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1025, allocations: 4 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1026, allocations: 0 / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.029e-05/0.1026, allocations: 11.98 kB / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003158/0.1029, allocations: 236.9 kB / 474.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.148e-05/0.103, allocations: 22.56 kB / 474.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.103, allocations: 7.984 kB / 474.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.103, allocations: 38.62 kB / 474.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.103, allocations: 0 / 474.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.1032, allocations: 33.61 kB / 474.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.1032, allocations: 51.41 kB / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.041e-05/0.1033, allocations: 97.86 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.1033, allocations: 29.69 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.152e-05/0.1033, allocations: 96.45 kB / 474.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-06/0.1034, allocations: 4 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.1034, allocations: 0 / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1035, allocations: 310.8 kB / 475.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.776e-06/0.1035, allocations: 0 / 475.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.258e-05/0.1035, allocations: 26.56 kB / 475.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.185e-05/0.1035, allocations: 11.95 kB / 475.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.1036, allocations: 0 / 475.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.667e-05/0.1036, allocations: 49.64 kB / 475.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1036, allocations: 8 kB / 475.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1037, allocations: 0 / 475.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.1037, allocations: 0 / 475.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.223e-05/0.1037, allocations: 7.984 kB / 475.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1037, allocations: 4 kB / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.65e-05/0.1038, allocations: 0 / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.1038, allocations: 4.094 kB / 475.2 MB, free: 9.746 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.648e-05/0.1039, allocations: 118.3 kB / 475.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.008e-05/0.1039, allocations: 0 / 475.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.104, allocations: 52.84 kB / 475.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.104, allocations: 3.938 kB / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.104, allocations: 0 / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.104, allocations: 4.031 kB / 475.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.1042, allocations: 157.5 kB / 475.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1042, allocations: 3.953 kB / 475.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1042, allocations: 0 / 475.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1042, allocations: 0 / 475.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.1042, allocations: 8 kB / 475.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.1042, allocations: 0 / 475.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1042, allocations: 0 / 475.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.09e-05/0.1043, allocations: 131.5 kB / 475.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.1044, allocations: 85.05 kB / 475.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.1044, allocations: 0 / 475.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.1044, allocations: 0 / 475.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.1044, allocations: 4 kB / 475.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.1045, allocations: 4 kB / 475.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.784e-05/0.1045, allocations: 75.28 kB / 475.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1045, allocations: 0 / 475.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.1048, allocations: 43.98 kB / 475.9 MB, free: 8.969 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004725/0.1053, allocations: 0.7036 MB / 476.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.445e-05/0.1053, allocations: 12 kB / 476.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1053, allocations: 0 / 476.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.83e-05/0.1054, allocations: 29.92 kB / 476.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.1055, allocations: 4.062 kB / 476.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003657/0.1059, allocations: 128.6 kB / 476.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.1061, allocations: 0.6731 MB / 477.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.243e-05/0.1062, allocations: 7.938 kB / 477.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.952e-05/0.1062, allocations: 7.438 kB / 477.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1062, allocations: 0 / 477.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1192, allocations: 1.627 MB / 479.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/0.1195, allocations: 195.1 kB / 479.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/1.76, allocations: 2.812 kB / 479.3 MB, free: 5.551 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat