Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_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.0007935/0.0007935, allocations: 94.88 kB / 16.95 MB, free: 6.031 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.0007936/0.0007938, allocations: 179.9 kB / 17.84 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004702, allocations: 12 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1062, allocations: 47.59 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.003832/0.11, allocations: 2.423 MB / 330.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1122, allocations: 1.042 MB / 331.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.1124, allocations: 4 kB / 331.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005651/0.113, allocations: 151.4 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.1135, allocations: 191 kB / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.1138, allocations: 123.7 kB / 332.4 MB, free: 36 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005415/0.1144, allocations: 394.1 kB / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.1146, allocations: 94.47 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.1149, allocations: 155.4 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.1151, allocations: 187.3 kB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.1152, allocations: 16 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.1153, allocations: 63.91 kB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1154, allocations: 63.75 kB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1155, allocations: 97.52 kB / 333.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.1159, allocations: 363.3 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1159, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.116, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.116, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.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.0009726/0.1169, allocations: 0.6305 MB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.117, allocations: 8.031 kB / 334.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.1171, allocations: 62.88 kB / 334.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.904e-05/0.1172, allocations: 47.48 kB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.1176, allocations: 325.7 kB / 334.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1177, allocations: 16.42 kB / 334.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.1177, allocations: 20 kB / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.1182, allocations: 301.4 kB / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1183, allocations: 0 / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.1183, allocations: 16 kB / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1183, allocations: 4 kB / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.1186, allocations: 149.7 kB / 335.3 MB, free: 12.92 MB / 286.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.001405/0.12, allocations: 0.8479 MB / 336.2 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.1205, allocations: 187.9 kB / 336.4 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1206, allocations: 81.2 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.1207, allocations: 4.188 kB / 336.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.121, allocations: 131.5 kB / 336.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.121, allocations: 0 / 336.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008416/0.1218, allocations: 407.5 kB / 337 MB, free: 11.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/0.122, allocations: 312.4 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004795/0.1225, allocations: 433.6 kB / 337.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.1226, allocations: 33.7 kB / 337.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.1228, allocations: 204.3 kB / 337.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.36e-05/0.1229, allocations: 74.92 kB / 338 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.1229, allocations: 4 kB / 338 MB, free: 10.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.123, allocations: 346.8 kB / 338.4 MB, free: 9.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1232, allocations: 67.97 kB / 338.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1234, allocations: 171.9 kB / 338.6 MB, free: 9.402 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.1236, allocations: 87.86 kB / 338.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1236, allocations: 4.094 kB / 338.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004603/0.1241, allocations: 265.8 kB / 338.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.1241, allocations: 15.94 kB / 339 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1241, allocations: 0 / 339 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.1243, allocations: 36.94 kB / 339 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1245, allocations: 47.92 kB / 339 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.1261, allocations: 1.464 MB / 340.5 MB, free: 7.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1263, allocations: 31.78 kB / 340.5 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.1264, allocations: 4 kB / 340.5 MB, free: 7.305 MB / 286.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.0001912/0.1265, allocations: 165.8 kB / 340.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.1266, allocations: 47.48 kB / 340.7 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.839e-05/0.1267, allocations: 39.59 kB / 340.8 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1267, allocations: 4 kB / 340.8 MB, free: 7.035 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.1267, allocations: 4 kB / 340.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005624/0.1273, allocations: 0.5828 MB / 341.4 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009486/0.1283, allocations: 0.7006 MB / 342.1 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1283, allocations: 0 / 342.1 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.1285, allocations: 47.91 kB / 342.1 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1285, allocations: 4 kB / 342.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1285, allocations: 8 kB / 342.1 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1285, allocations: 0 / 342.1 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1285, allocations: 0 / 342.1 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000556/0.1291, allocations: 398.7 kB / 342.5 MB, free: 5.117 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1292, allocations: 148.6 kB / 342.7 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.1293, allocations: 4 kB / 342.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1295, allocations: 15.98 kB / 342.7 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.1296, allocations: 16.05 kB / 342.7 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.1296, allocations: 8 kB / 342.7 MB, free: 4.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003146/0.1299, allocations: 315.1 kB / 343 MB, free: 4.609 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.1299, allocations: 0 / 343 MB, free: 4.609 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.1303, allocations: 99.77 kB / 343.1 MB, free: 4.512 MB / 286.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.001768/0.1321, allocations: 1.238 MB / 344.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005819/0.1327, allocations: 302.5 kB / 344.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1327, allocations: 4 kB / 344.7 MB, free: 2.949 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.1329, allocations: 83.91 kB / 344.7 MB, free: 2.867 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.1335, allocations: 105.6 kB / 344.8 MB, free: 2.762 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.1368, allocations: 2.212 MB / 347 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.1372, allocations: 0.796 MB / 347.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.1374, allocations: 42.95 kB / 347.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.1376, allocations: 135.3 kB / 348 MB, free: 15.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1376, allocations: 0 / 348 MB, free: 15.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.1628, allocations: 9.111 MB / 357.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.163, allocations: 258.4 kB / 357.4 MB, free: 6.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.331, allocations: 3.938 kB / 357.4 MB, free: 6.023 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat