Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2267/0.2267, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002344/0.002345, allocations: 82.7 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1189, allocations: 62.46 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.002228/0.1212, allocations: 490.5 kB / 480.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.1235, allocations: 1.407 MB / 482.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.139e-05/0.1236, allocations: 4 kB / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.2e-05/0.1237, allocations: 0 / 482.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.1e-05/0.1237, allocations: 3.938 kB / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009997/0.1247, allocations: 230.2 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.695e-05/0.1248, allocations: 4 kB / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.294e-05/0.1249, allocations: 0 / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.447e-05/0.1249, allocations: 4 kB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.991e-05/0.1249, allocations: 7.984 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.125, allocations: 3.938 kB / 482.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006578/0.1256, allocations: 275.6 kB / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.1257, allocations: 8 kB / 482.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.1257, allocations: 11.92 kB / 482.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.126, allocations: 143.7 kB / 482.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.126, allocations: 4 kB / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.126, allocations: 0 / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1261, allocations: 0 / 482.8 MB, free: 2.555 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.0004342/0.1265, allocations: 327.6 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1265, allocations: 8.031 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.642e-05/0.1266, allocations: 30.75 kB / 483.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.1266, allocations: 4.938 kB / 483.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.1268, allocations: 172.3 kB / 483.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1268, allocations: 4.375 kB / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.1268, allocations: 384 / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.1269, allocations: 37.77 kB / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1269, allocations: 0 / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.127, allocations: 0 / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.127, allocations: 0 / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.107e-05/0.127, allocations: 0 / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001739/0.1272, allocations: 157.7 kB / 483.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.58e-05/0.1272, allocations: 18.61 kB / 483.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.06e-05/0.1273, allocations: 8.797 kB / 483.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.1273, allocations: 0 / 483.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1273, allocations: 38.44 kB / 483.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1273, allocations: 0 / 483.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000143/0.1275, allocations: 37.88 kB / 483.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1275, allocations: 55.41 kB / 483.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.121e-05/0.1276, allocations: 97.86 kB / 483.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1276, allocations: 25.7 kB / 483.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.1277, allocations: 80.14 kB / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.1277, allocations: 288 / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.1278, allocations: 17.7 kB / 483.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1279, allocations: 314.8 kB / 484.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.1279, allocations: 4.125 kB / 484.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.275e-05/0.128, allocations: 7.938 kB / 484.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.041e-05/0.128, allocations: 8.859 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.128, allocations: 0 / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.786e-05/0.1281, allocations: 33.64 kB / 484.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1281, allocations: 8 kB / 484.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1281, allocations: 3.984 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1281, allocations: 3.984 kB / 484.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.663e-05/0.1282, allocations: 8.031 kB / 484.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1282, allocations: 4 kB / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.1282, allocations: 7.938 kB / 484.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.1283, allocations: 0 / 484.3 MB, free: 0.8281 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 8.655e-05/0.1284, allocations: 109.8 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.1284, allocations: 3.938 kB / 484.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.1285, allocations: 52.75 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1285, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1285, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1285, allocations: 0 / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1287, allocations: 149.7 kB / 484.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.1287, allocations: 4 kB / 484.6 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.474e-06/0.1287, allocations: 3.938 kB / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1287, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1287, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1287, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1287, allocations: 3.938 kB / 484.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.906e-05/0.1288, allocations: 73 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.763e-05/0.1289, allocations: 85.05 kB / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.1289, allocations: 0 / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.881e-05/0.129, allocations: 0 / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.711e-05/0.129, allocations: 0 / 484.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.129, allocations: 4 kB / 484.8 MB, free: 252 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.71e-05/0.1291, allocations: 79.31 kB / 484.8 MB, free: 172 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1291, allocations: 0 / 484.8 MB, free: 172 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.1294, allocations: 43.98 kB / 484.9 MB, free: 128 kB / 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.0006252/0.13, allocations: 0.6358 MB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.816e-05/0.1301, allocations: 12.06 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1301, allocations: 0 / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.756e-05/0.1301, allocations: 29.7 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.1303, allocations: 2.062 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000403/0.1307, allocations: 134.6 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.131, allocations: 0.669 MB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.867e-05/0.131, allocations: 4 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.1311, allocations: 11.56 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1311, allocations: 0 / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.1549, allocations: 1.858 MB / 488.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/7.887, allocations: 7.891 kB / 488.2 MB, free: 12.75 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1)