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.0009256/0.0009256, allocations: 97.72 kB / 16.3 MB, free: 5.582 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.001058/0.001058, allocations: 182.2 kB / 17.2 MB, free: 5.516 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.344/1.344, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002938/0.000294, allocations: 8 kB / 300.8 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 50.41 MB / 351.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.002818/0.1068, allocations: 2.297 MB / 353.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1084, allocations: 1.111 MB / 354.6 MB, free: 308 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1085, allocations: 7.938 kB / 354.6 MB, free: 300 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003653/0.1089, allocations: 151.4 kB / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003734/0.1093, allocations: 199.5 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.1097, allocations: 142.3 kB / 355.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.1101, allocations: 315.3 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.1103, allocations: 86.53 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.1105, allocations: 155.5 kB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.1107, allocations: 175.3 kB / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.1107, allocations: 16 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.1109, allocations: 39.98 kB / 355.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.712e-05/0.111, allocations: 67.75 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.708e-05/0.111, allocations: 97.45 kB / 356.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.1113, allocations: 339.3 kB / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.1114, allocations: 0 / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1114, allocations: 0 / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1114, allocations: 4 kB / 356.4 MB, free: 14.53 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.0008111/0.1122, allocations: 0.619 MB / 357 MB, free: 13.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1122, allocations: 12.03 kB / 357 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1123, allocations: 58.89 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.281e-05/0.1124, allocations: 43.53 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.1129, allocations: 313.6 kB / 357.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1129, allocations: 20.42 kB / 357.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.1129, allocations: 27.95 kB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.1134, allocations: 297.5 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.1134, allocations: 3.938 kB / 357.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.1134, allocations: 8 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1135, allocations: 8 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.1137, allocations: 145.7 kB / 357.9 MB, free: 12.86 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.001185/0.1149, allocations: 0.8322 MB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004424/0.1154, allocations: 211.9 kB / 359 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.1154, allocations: 4.188 kB / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.1157, allocations: 127.5 kB / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.1157, allocations: 0 / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007431/0.1165, allocations: 409 kB / 359.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.1166, allocations: 320.4 kB / 359.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.1171, allocations: 405.7 kB / 360.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.1171, allocations: 29.7 kB / 360.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1173, allocations: 208.3 kB / 360.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.323e-05/0.1173, allocations: 70.91 kB / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.1173, allocations: 8 kB / 360.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1175, allocations: 354.8 kB / 360.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.1176, allocations: 67.97 kB / 360.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.1178, allocations: 167.9 kB / 361.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.118, allocations: 83.92 kB / 361.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.118, allocations: 0 / 361.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004686/0.1185, allocations: 261.9 kB / 361.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.1185, allocations: 8.078 kB / 361.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1185, allocations: 8 kB / 361.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/0.1187, allocations: 32.84 kB / 361.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/0.1191, allocations: 55.91 kB / 361.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.1211, allocations: 1.472 MB / 363 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.1213, allocations: 23.75 kB / 363 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.1213, allocations: 11.94 kB / 363 MB, free: 7.336 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.0002542/0.1216, allocations: 170.6 kB / 363.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.1217, allocations: 39.53 kB / 363.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.665e-05/0.1218, allocations: 47.58 kB / 363.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1218, allocations: 4 kB / 363.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1218, allocations: 0 / 363.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007906/0.1226, allocations: 0.575 MB / 363.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009597/0.1235, allocations: 0.6925 MB / 364.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1236, allocations: 0 / 364.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.1238, allocations: 47.91 kB / 364.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1238, allocations: 8 kB / 364.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.1238, allocations: 8 kB / 364.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1238, allocations: 96 / 364.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1238, allocations: 3.938 kB / 364.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005598/0.1244, allocations: 399 kB / 365 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.1245, allocations: 136.6 kB / 365.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.1246, allocations: 7.938 kB / 365.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1248, allocations: 20.05 kB / 365.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.1249, allocations: 11.98 kB / 365.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.1249, allocations: 11.98 kB / 365.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.1253, allocations: 295.1 kB / 365.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1253, allocations: 0 / 365.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004296/0.1257, allocations: 103.8 kB / 365.6 MB, free: 4.566 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.001785/0.1275, allocations: 1.251 MB / 366.8 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007044/0.1282, allocations: 310.4 kB / 367.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1282, allocations: 0 / 367.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.1284, allocations: 79.91 kB / 367.2 MB, free: 3.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.129, allocations: 93.62 kB / 367.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.1325, allocations: 2.578 MB / 369.9 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2157/0.3483, allocations: 0.7987 MB / 370.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004499/0.3488, allocations: 39.3 kB / 370.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.3492, allocations: 121.8 kB / 370.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3492, allocations: 1.406 kB / 370.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04073/0.39, allocations: 8.788 MB / 379.6 MB, free: 22.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/0.3903, allocations: 262 kB / 379.9 MB, free: 21.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.363, allocations: 3.938 kB / 379.9 MB, free: 21.8 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