Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001067/0.001067, allocations: 90.45 kB / 16.31 MB, free: 5.621 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.001354/0.001354, allocations: 183 kB / 17.21 MB, free: 5.535 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.336/1.336, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003645, allocations: 4 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1127, allocations: 50.41 MB / 351.3 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004397/0.1172, allocations: 2.437 MB / 353.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00287/0.1201, allocations: 1.099 MB / 354.9 MB, free: 112 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003287/0.1204, allocations: 4 kB / 354.9 MB, free: 108 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006592/0.1211, allocations: 155.4 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006675/0.1218, allocations: 179 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006386/0.1225, allocations: 146.8 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007389/0.1232, allocations: 394 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002584/0.1235, allocations: 86.53 kB / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003453/0.1238, allocations: 163.4 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.1243, allocations: 187.2 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.852e-05/0.1244, allocations: 20 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.1246, allocations: 44 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.1247, allocations: 75.73 kB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1249, allocations: 97.45 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.1254, allocations: 359.3 kB / 356.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1254, allocations: 0 / 356.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1254, allocations: 0 / 356.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.1255, allocations: 0 / 356.7 MB, free: 14.22 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001295/0.1268, allocations: 0.6346 MB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.1268, allocations: 8.031 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.127, allocations: 62.88 kB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.1271, allocations: 43.53 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/0.1278, allocations: 329.6 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1278, allocations: 16.44 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.1279, allocations: 23.95 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.1286, allocations: 309.4 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1286, allocations: 0 / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.1287, allocations: 8 kB / 358.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1287, allocations: 4 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.1291, allocations: 149.7 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1308, allocations: 0.844 MB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.1314, allocations: 191.1 kB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.1316, allocations: 81.14 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.1316, allocations: 4.188 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003833/0.132, allocations: 134.5 kB / 359.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.665e-06/0.132, allocations: 0 / 359.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001074/0.1331, allocations: 406.8 kB / 359.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/0.1333, allocations: 320.4 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006109/0.134, allocations: 425.7 kB / 360.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.134, allocations: 29.7 kB / 360.7 MB, free: 9.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.1342, allocations: 212.3 kB / 360.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.061e-05/0.1343, allocations: 70.91 kB / 361 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.662e-05/0.1343, allocations: 8 kB / 361 MB, free: 9.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1345, allocations: 354.8 kB / 361.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.1347, allocations: 67.97 kB / 361.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.135, allocations: 168 kB / 361.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.1352, allocations: 75.94 kB / 361.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1352, allocations: 0 / 361.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006215/0.1359, allocations: 265.9 kB / 361.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.1359, allocations: 14.59 kB / 361.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1359, allocations: 0 / 361.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002685/0.1362, allocations: 36.78 kB / 361.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.1365, allocations: 51.97 kB / 362 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.1384, allocations: 1.46 MB / 363.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.1387, allocations: 23.75 kB / 363.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.1388, allocations: 12 kB / 363.5 MB, free: 6.922 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: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002663/0.1391, allocations: 166.8 kB / 363.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.1391, allocations: 47.45 kB / 363.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.1393, allocations: 47.59 kB / 363.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1393, allocations: 0 / 363.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1393, allocations: 0 / 363.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008084/0.1401, allocations: 0.5849 MB / 364.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.1413, allocations: 0.7045 MB / 365 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1414, allocations: 0 / 365 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.1416, allocations: 47.92 kB / 365.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1417, allocations: 4 kB / 365.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.1417, allocations: 7.984 kB / 365.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.1417, allocations: 0 / 365.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1417, allocations: 3.953 kB / 365.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005675/0.1423, allocations: 406.6 kB / 365.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.1425, allocations: 136.6 kB / 365.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.1425, allocations: 8 kB / 365.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1427, allocations: 20.05 kB / 365.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.1428, allocations: 16.08 kB / 365.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.1428, allocations: 11.89 kB / 365.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003394/0.1431, allocations: 311.1 kB / 366 MB, free: 4.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1432, allocations: 0 / 366 MB, free: 4.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004071/0.1436, allocations: 95.84 kB / 366.1 MB, free: 4.117 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001624/0.1452, allocations: 1.241 MB / 367.3 MB, free: 3.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005695/0.1458, allocations: 312.4 kB / 367.6 MB, free: 2.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1458, allocations: 3.938 kB / 367.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.146, allocations: 80.09 kB / 367.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.1466, allocations: 97.5 kB / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.15, allocations: 2.209 MB / 370 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1844/0.3344, allocations: 0.7917 MB / 370.8 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003167/0.3348, allocations: 45.92 kB / 370.8 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/0.335, allocations: 123.8 kB / 371 MB, free: 23.6 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.335, allocations: 0 / 371 MB, free: 23.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.3595, allocations: 9.127 MB / 380.1 MB, free: 21.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/0.3597, allocations: 258.8 kB / 380.3 MB, free: 21.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.473, allocations: 0 / 380.3 MB, free: 21.56 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat