Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001898/0.001898, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002393/0.002393, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2229/0.2229, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 81.55 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1169, allocations: 62.45 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001773/0.1187, allocations: 491.7 kB / 480.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.1207, allocations: 1.407 MB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.876e-05/0.1207, allocations: 0 / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.361e-05/0.1208, allocations: 0 / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.332e-05/0.1208, allocations: 0 / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007463/0.1215, allocations: 230.3 kB / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.033e-05/0.1216, allocations: 7.938 kB / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.1216, allocations: 0 / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.1217, allocations: 4 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.703e-05/0.1217, allocations: 3.984 kB / 482.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.1217, allocations: 0 / 482.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004475/0.1222, allocations: 283.6 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.1222, allocations: 3.984 kB / 482.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.335e-05/0.1222, allocations: 11.94 kB / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.1224, allocations: 139.7 kB / 482.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1225, allocations: 0 / 482.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1225, allocations: 0 / 482.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1225, allocations: 4 kB / 482.8 MB, free: 2.527 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.0003844/0.1229, allocations: 331.5 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1229, allocations: 12.03 kB / 483.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.123, allocations: 38.75 kB / 483.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.123, allocations: 4.922 kB / 483.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1231, allocations: 160.4 kB / 483.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1231, allocations: 4.375 kB / 483.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.1231, allocations: 4.312 kB / 483.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.1232, allocations: 41.81 kB / 483.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.1233, allocations: 0 / 483.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1233, allocations: 4 kB / 483.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1233, allocations: 0 / 483.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.061e-05/0.1233, allocations: 4 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003668/0.1237, allocations: 248.9 kB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.553e-05/0.1238, allocations: 22.52 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.039e-05/0.1238, allocations: 8.922 kB / 483.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.147e-06/0.1238, allocations: 0 / 483.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1238, allocations: 30.56 kB / 483.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.1238, allocations: 3.938 kB / 483.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.124, allocations: 45.59 kB / 483.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.124, allocations: 51.41 kB / 483.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.468e-05/0.1241, allocations: 94.14 kB / 483.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.1242, allocations: 29.7 kB / 483.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.607e-05/0.1242, allocations: 84.08 kB / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.515e-06/0.1242, allocations: 7.844 kB / 484 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.1243, allocations: 17.72 kB / 484 MB, free: 1.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1244, allocations: 323 kB / 484.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.1244, allocations: 0 / 484.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.602e-05/0.1245, allocations: 22.56 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.876e-05/0.1245, allocations: 26.58 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.1245, allocations: 0 / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.81e-05/0.1246, allocations: 57.56 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.1246, allocations: 4 kB / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1246, allocations: 4 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1247, allocations: 0 / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.873e-05/0.1247, allocations: 4 kB / 484.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.1247, allocations: 3.984 kB / 484.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.91e-05/0.1247, allocations: 4 kB / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.1248, allocations: 0 / 484.4 MB, free: 0.6172 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 8.131e-05/0.1248, allocations: 117.9 kB / 484.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.1249, allocations: 0 / 484.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.125, allocations: 48.75 kB / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.125, allocations: 0 / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.125, allocations: 3.938 kB / 484.6 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.125, allocations: 0 / 484.6 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.1252, allocations: 157.5 kB / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1252, allocations: 4.031 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1252, allocations: 0 / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1252, allocations: 3.984 kB / 484.8 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.1252, allocations: 4 kB / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1252, allocations: 0 / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1252, allocations: 0 / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.1253, allocations: 127.5 kB / 484.9 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.1254, allocations: 77.11 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1254, allocations: 11.95 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.717e-05/0.1255, allocations: 4 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.1255, allocations: 8 kB / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.1255, allocations: 0 / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.759e-05/0.1256, allocations: 79.22 kB / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1256, allocations: 0 / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1259, allocations: 40 kB / 485.1 MB, free: 15.85 MB / 366.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.0005741/0.1265, allocations: 0.7125 MB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.43e-05/0.1265, allocations: 11.94 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1265, allocations: 0 / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.642e-05/0.1266, allocations: 29.7 kB / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.1268, allocations: 4.719 kB / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003761/0.1272, allocations: 134.9 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.1275, allocations: 0.6729 MB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.325e-05/0.1275, allocations: 4 kB / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.1275, allocations: 7.438 kB / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1275, allocations: 0 / 486.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1496, allocations: 1.86 MB / 488.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/7.99, allocations: 1.078 kB / 488.5 MB, free: 12.4 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1)