Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001552/0.001552, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003782, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1017, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006761/0.1085, allocations: 3.992 MB / 378.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003607/0.1121, allocations: 1.275 MB / 379.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005466/0.1127, allocations: 11.94 kB / 379.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003816/0.1131, allocations: 95.28 kB / 380 MB, free: 9.941 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1143, allocations: 351 kB / 380.4 MB, free: 9.598 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006814/0.115, allocations: 171.7 kB / 380.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001809/0.1169, allocations: 0.7925 MB / 381.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.1175, allocations: 262.9 kB / 381.6 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007169/0.1182, allocations: 378.8 kB / 381.9 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.119, allocations: 434.2 kB / 382.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.1192, allocations: 60 kB / 382.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.1195, allocations: 60 kB / 382.5 MB, free: 7.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.1197, allocations: 175.2 kB / 382.7 MB, free: 7.273 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002901/0.12, allocations: 205.3 kB / 382.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.1212, allocations: 0.8374 MB / 383.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1213, allocations: 4 kB / 383.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1213, allocations: 0 / 383.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.1213, allocations: 0 / 383.7 MB, free: 6.223 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.003478/0.1248, allocations: 1.197 MB / 384.9 MB, free: 4.957 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1249, allocations: 8.031 kB / 384.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003119/0.1252, allocations: 123.7 kB / 385 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.1255, allocations: 110.8 kB / 385.1 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.1269, allocations: 0.5278 MB / 385.7 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005099/0.1274, allocations: 174.4 kB / 385.8 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.1276, allocations: 60 kB / 385.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.1301, allocations: 0.8822 MB / 386.8 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/0.1302, allocations: 0 / 386.8 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.1303, allocations: 32 kB / 386.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.1303, allocations: 12 kB / 386.8 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002747/0.1331, allocations: 0.6726 MB / 387.5 MB, free: 2.191 MB / 282.7 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.005731/0.1389, allocations: 2.057 MB / 389.5 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2562/0.3951, allocations: 0.8869 MB / 390.4 MB, free: 20.11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.3952, allocations: 13.19 kB / 390.4 MB, free: 20.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.3953, allocations: 47.19 kB / 390.5 MB, free: 20.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=73): time 3.346e-06/0.3953, allocations: 1.156 kB / 390.5 MB, free: 20.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=73): time 0.009471/0.4048, allocations: 1.99 MB / 392.5 MB, free: 19.59 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002186/0.405, allocations: 0.8223 MB / 393.3 MB, free: 18.59 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.4061, allocations: 0.5829 MB / 393.9 MB, free: 18.39 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.4063, allocations: 41.23 kB / 393.9 MB, free: 18.36 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.4065, allocations: 366.7 kB / 394.3 MB, free: 18.08 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.4068, allocations: 254.1 kB / 394.5 MB, free: 17.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.4069, allocations: 12.22 kB / 394.5 MB, free: 17.9 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.67e-05/0.407, allocations: 340.5 kB / 394.9 MB, free: 17.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.4082, allocations: 305.8 kB / 395.2 MB, free: 17.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.4098, allocations: 0.5754 MB / 395.7 MB, free: 17.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.4112, allocations: 428.8 kB / 396.2 MB, free: 16.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.4113, allocations: 1.25 kB / 396.2 MB, free: 16.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00473/0.416, allocations: 1.146 MB / 397.3 MB, free: 16.38 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.411e-05/0.4161, allocations: 84.47 kB / 397.4 MB, free: 16.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.4161, allocations: 0.9062 kB / 397.4 MB, free: 16.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.4173, allocations: 253.9 kB / 397.6 MB, free: 16.19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.4186, allocations: 147.6 kB / 397.8 MB, free: 16.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.4294, allocations: 6.587 MB / 404.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4312, allocations: 120 kB / 404.5 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.894e-05/0.4313, allocations: 23.09 kB / 404.5 MB, free: 10.3 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 3,1 1,3 3,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004884/0.4318, allocations: 223.1 kB / 404.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.432, allocations: 84.34 kB / 404.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.4322, allocations: 92.84 kB / 404.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4322, allocations: 9.656 kB / 404.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.4323, allocations: 6.719 kB / 404.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004502/0.4368, allocations: 1.336 MB / 406.3 MB, free: 9.207 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006858/0.4437, allocations: 1.975 MB / 408.2 MB, free: 8.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/0.4437, allocations: 4 kB / 408.2 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.4451, allocations: 157 kB / 408.4 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009924/0.4462, allocations: 210.5 kB / 408.6 MB, free: 8.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-05/0.4463, allocations: 22.86 kB / 408.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009659/0.4559, allocations: 5.127 MB / 413.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.456, allocations: 0 / 413.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006115/0.4621, allocations: 1.518 MB / 415.3 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005749/0.4627, allocations: 237.3 kB / 415.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.4629, allocations: 16.22 kB / 415.5 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4642, allocations: 73.66 kB / 415.6 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000292/0.4645, allocations: 67.19 kB / 415.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.4646, allocations: 24.67 kB / 415.7 MB, free: 2.883 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007207/0.4653, allocations: 416 kB / 416.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4654, allocations: 0 / 416.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001418/0.4668, allocations: 285.3 kB / 416.4 MB, free: 2.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006201/0.473, allocations: 2.097 MB / 418.5 MB, free: 1.242 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00352/0.4766, allocations: 1.405 MB / 419.9 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.4766, allocations: 0 / 419.9 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002457/0.4791, allocations: 0.8129 MB / 420.7 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.4806, allocations: 217.1 kB / 420.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005983/0.4867, allocations: 2.733 MB / 423.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007298/0.4874, allocations: 0.9669 MB / 424.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007721/0.4882, allocations: 291.3 kB / 424.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.333e-06/0.4882, allocations: 0 / 424.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.33/3.818, allocations: 24.14 MB / 449 MB, free: 3.23 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat