Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.OneMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",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.001515/0.001514, allocations: 186.4 kB / 16.4 MB, free: 5.621 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.153/2.153, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001135/0.001135, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 11.98 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1224, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.OneMass): time 0.007449/0.1299, allocations: 2.928 MB / 377.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003316/0.1333, allocations: 0.9402 MB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003722/0.1337, allocations: 7.938 kB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.1342, allocations: 75.5 kB / 378.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009225/0.1351, allocations: 203.4 kB / 378.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1357, allocations: 95.83 kB / 378.9 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.137, allocations: 475.4 kB / 379.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004985/0.1376, allocations: 154.9 kB / 379.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005609/0.1381, allocations: 215.3 kB / 379.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000624/0.1388, allocations: 243 kB / 379.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.139, allocations: 36 kB / 380 MB, free: 9.973 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.1392, allocations: 32 kB / 380 MB, free: 9.941 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.1394, allocations: 99.58 kB / 380.1 MB, free: 9.844 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.1397, allocations: 129.5 kB / 380.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.1407, allocations: 498.7 kB / 380.7 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1408, allocations: 0 / 380.7 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1408, allocations: 0 / 380.7 MB, free: 9.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.1408, allocations: 0 / 380.7 MB, free: 9.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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003126/0.1439, allocations: 0.8077 MB / 381.5 MB, free: 8.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.649e-05/0.1441, allocations: 12.02 kB / 381.5 MB, free: 8.344 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002784/0.1444, allocations: 79.09 kB / 381.6 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.1446, allocations: 67.25 kB / 381.7 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.1461, allocations: 401.5 kB / 382.1 MB, free: 7.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004684/0.1466, allocations: 82.33 kB / 382.2 MB, free: 7.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.1467, allocations: 35.91 kB / 382.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.1489, allocations: 0.5009 MB / 382.7 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.1489, allocations: 4 kB / 382.7 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.013e-05/0.149, allocations: 16 kB / 382.7 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.1491, allocations: 8 kB / 382.7 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.1517, allocations: 386.4 kB / 383.1 MB, free: 6.68 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.004911/0.1566, allocations: 1.271 MB / 384.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.1587, allocations: 415.3 kB / 384.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.729e-05/0.1588, allocations: 7.984 kB / 384.8 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.122e-05/0.1589, allocations: 38.56 kB / 384.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 5.229e-06/0.1589, allocations: 0 / 384.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.004718/0.1636, allocations: 0.7861 MB / 385.6 MB, free: 3.992 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003256/0.164, allocations: 445 kB / 386 MB, free: 3.453 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.1651, allocations: 429.8 kB / 386.5 MB, free: 3.023 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.1653, allocations: 37.7 kB / 386.5 MB, free: 2.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003299/0.1656, allocations: 274.9 kB / 386.8 MB, free: 2.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.1659, allocations: 126.1 kB / 386.9 MB, free: 2.586 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.166, allocations: 8 kB / 386.9 MB, free: 2.578 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.1662, allocations: 334.8 kB / 387.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.1673, allocations: 159.7 kB / 387.4 MB, free: 2.086 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.1688, allocations: 298.6 kB / 387.7 MB, free: 1.738 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.1702, allocations: 215.1 kB / 387.9 MB, free: 1.523 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.1702, allocations: 4 kB / 387.9 MB, free: 1.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002943/0.1732, allocations: 482.7 kB / 388.4 MB, free: 1.031 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.661e-05/0.1733, allocations: 33.7 kB / 388.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1733, allocations: 0 / 388.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003593/0.1737, allocations: 53.69 kB / 388.4 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.175, allocations: 95.88 kB / 388.5 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3052/0.4802, allocations: 2.761 MB / 391.3 MB, free: 18.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009178/0.4812, allocations: 66.48 kB / 391.4 MB, free: 18.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.4813, allocations: 11.5 kB / 391.4 MB, free: 18.27 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003259/0.4816, allocations: 170.3 kB / 391.5 MB, free: 18.15 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.4818, allocations: 59.59 kB / 391.6 MB, free: 18.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.4819, allocations: 57.09 kB / 391.6 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4819, allocations: 4.375 kB / 391.7 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.482, allocations: 4.594 kB / 391.7 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001706/0.4837, allocations: 0.7741 MB / 392.4 MB, free: 17.61 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.4865, allocations: 1.038 MB / 393.5 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4866, allocations: 1.406 kB / 393.5 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008611/0.4874, allocations: 99.56 kB / 393.6 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.4875, allocations: 1.375 kB / 393.6 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.4875, allocations: 7.234 kB / 393.6 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.4875, allocations: 2.031 kB / 393.6 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4875, allocations: 3.625 kB / 393.6 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.49, allocations: 0.7222 MB / 394.3 MB, free: 16.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.4903, allocations: 164.2 kB / 394.5 MB, free: 16.85 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4904, allocations: 12.91 kB / 394.5 MB, free: 16.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00074/0.4912, allocations: 42.64 kB / 394.5 MB, free: 16.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.4913, allocations: 27.83 kB / 394.5 MB, free: 16.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.4914, allocations: 7.234 kB / 394.6 MB, free: 16.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005127/0.4919, allocations: 301 kB / 394.8 MB, free: 16.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4919, allocations: 0 / 394.8 MB, free: 16.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006827/0.4926, allocations: 135.7 kB / 395 MB, free: 16.67 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002835/0.4955, allocations: 1.268 MB / 396.2 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.4976, allocations: 0.6773 MB / 396.9 MB, free: 15.4 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.4976, allocations: 5.25 kB / 396.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007918/0.4984, allocations: 198.9 kB / 397.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009796/0.4994, allocations: 128.1 kB / 397.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.5024, allocations: 1.656 MB / 398.9 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.5028, allocations: 0.8387 MB / 399.7 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004057/0.5032, allocations: 169.7 kB / 399.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5032, allocations: 0 / 399.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.835/3.338, allocations: 10.24 MB / 410.1 MB, free: 9.445 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat