Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009548/0.0009549, allocations: 96.02 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 191.5 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.000254, allocations: 12 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002745/0.1127, allocations: 2.361 MB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.114, allocations: 0.7366 MB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1141, allocations: 11.94 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.1143, allocations: 59.59 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.1146, allocations: 111.1 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.1148, allocations: 67.84 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1153, allocations: 386.4 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.1155, allocations: 86.19 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1157, allocations: 135.5 kB / 362.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.116, allocations: 159.3 kB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.116, allocations: 20 kB / 362.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.413e-05/0.1161, allocations: 24 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.9e-05/0.1162, allocations: 67.73 kB / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.528e-05/0.1163, allocations: 97.52 kB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.1166, allocations: 315.4 kB / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1166, allocations: 0 / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1166, allocations: 0 / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1166, allocations: 0 / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001082/0.1177, allocations: 0.6249 MB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1177, allocations: 8.031 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.1179, allocations: 67.02 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.565e-05/0.118, allocations: 43.52 kB / 363.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.1183, allocations: 298.3 kB / 363.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.1184, allocations: 58.23 kB / 364 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.1185, allocations: 24 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.119, allocations: 339.3 kB / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.119, allocations: 0 / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.1191, allocations: 12 kB / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1191, allocations: 4 kB / 364.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004175/0.1195, allocations: 214.1 kB / 364.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1211, allocations: 0.8304 MB / 365.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1217, allocations: 288 kB / 365.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.1219, allocations: 120.9 kB / 365.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.122, allocations: 7.984 kB / 365.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.122, allocations: 46.55 kB / 365.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.545e-06/0.122, allocations: 3.938 kB / 365.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001138/0.1232, allocations: 499.2 kB / 366.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/0.1234, allocations: 312.4 kB / 366.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.1237, allocations: 283 kB / 366.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.1238, allocations: 33.7 kB / 367 MB, free: 4.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1239, allocations: 176.6 kB / 367.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.124, allocations: 102.5 kB / 367.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.597e-05/0.124, allocations: 4 kB / 367.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1242, allocations: 346.8 kB / 367.6 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.1244, allocations: 99.7 kB / 367.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.1247, allocations: 212.2 kB / 367.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.125, allocations: 144 kB / 368 MB, free: 3.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.125, allocations: 0 / 368 MB, free: 3.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006568/0.1257, allocations: 373.9 kB / 368.4 MB, free: 3.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.282e-05/0.1258, allocations: 29.7 kB / 368.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.1258, allocations: 8.094 kB / 368.4 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.126, allocations: 32.84 kB / 368.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009938/0.127, allocations: 211.8 kB / 368.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1887/0.3158, allocations: 3.065 MB / 371.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004618/0.3163, allocations: 35.55 kB / 371.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.3163, allocations: 10.44 kB / 371.8 MB, free: 18.33 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002436/0.3166, allocations: 155 kB / 371.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.3167, allocations: 36.23 kB / 372 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3168, allocations: 41.19 kB / 372 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3168, allocations: 3.031 kB / 372 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3168, allocations: 1.906 kB / 372 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007081/0.3175, allocations: 0.6591 MB / 372.7 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004638/0.318, allocations: 392.5 kB / 373 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.318, allocations: 0.7812 kB / 373 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.3193, allocations: 253.7 kB / 373.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-05/0.3193, allocations: 31.14 kB / 373.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.3194, allocations: 6.031 kB / 373.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/0.3221, allocations: 2.904 MB / 376.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3221, allocations: 0 / 376.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009605/0.3231, allocations: 0.5141 MB / 376.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.3232, allocations: 136.7 kB / 376.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/0.3233, allocations: 8.156 kB / 376.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.3236, allocations: 28.41 kB / 376.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.283e-05/0.3237, allocations: 22.66 kB / 376.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3237, allocations: 8.469 kB / 376.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.3239, allocations: 198.2 kB / 377.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.324, allocations: 1.781 kB / 377.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004984/0.3245, allocations: 106.9 kB / 377.2 MB, free: 14.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001251/0.3257, allocations: 1.075 MB / 378.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.3273, allocations: 0.5838 MB / 378.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.3273, allocations: 4.562 kB / 378.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.3287, allocations: 448.8 kB / 379.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.3293, allocations: 92.61 kB / 379.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.3328, allocations: 2.237 MB / 381.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.333, allocations: 0.7775 MB / 382.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001899/0.3332, allocations: 36.75 kB / 382.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.3334, allocations: 104.4 kB / 382.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3334, allocations: 0 / 382.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.3572, allocations: 8.576 MB / 391.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001266/0.3574, allocations: 212.2 kB / 391.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/2.373, allocations: 5.312 kB / 391.4 MB, free: 9.078 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat