Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",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.002201/0.002201, allocations: 185.7 kB / 16.4 MB, free: 5.711 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.15/2.15, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001148/0.001148, allocations: 95.42 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000387/0.000387, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3394, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.003956/0.3434, allocations: 2.771 MB / 377.4 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.3453, allocations: 0.9006 MB / 378.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.3457, allocations: 9.375 kB / 378.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002586/0.346, allocations: 70.91 kB / 378.4 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005548/0.3466, allocations: 205.3 kB / 378.6 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.3469, allocations: 86.89 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007364/0.3477, allocations: 448.7 kB / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003296/0.348, allocations: 151.8 kB / 379.2 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.3483, allocations: 196.6 kB / 379.4 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.3486, allocations: 231.9 kB / 379.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.717e-05/0.3487, allocations: 30.69 kB / 379.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.3489, allocations: 31.88 kB / 379.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.986e-05/0.349, allocations: 89.81 kB / 379.8 MB, free: 41.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.3491, allocations: 124.1 kB / 379.9 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.3497, allocations: 463.9 kB / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.3497, allocations: 0 / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3497, allocations: 1.125 kB / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3497, allocations: 0 / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001623/0.3514, allocations: 0.7536 MB / 381.1 MB, free: 40.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.3514, allocations: 13.97 kB / 381.2 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.3516, allocations: 79.55 kB / 381.2 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.3518, allocations: 60.72 kB / 381.3 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006153/0.3524, allocations: 354.3 kB / 381.6 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3525, allocations: 62.34 kB / 381.7 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.148e-05/0.3526, allocations: 38.44 kB / 381.7 MB, free: 40.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.3537, allocations: 467.5 kB / 382.2 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.3537, allocations: 0 / 382.2 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/0.3538, allocations: 15.81 kB / 382.2 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3538, allocations: 8.562 kB / 382.2 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009232/0.3547, allocations: 290.9 kB / 382.5 MB, free: 39.51 MB / 298.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.002957/0.3577, allocations: 1.289 MB / 383.8 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.3596, allocations: 431.4 kB / 384.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.833e-05/0.3597, allocations: 9.172 kB / 384.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3597, allocations: 45.92 kB / 384.3 MB, free: 38.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.885e-06/0.3597, allocations: 0 / 384.3 MB, free: 38.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001784/0.3615, allocations: 0.6071 MB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.3616, allocations: 447.2 kB / 385.3 MB, free: 37.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000646/0.3623, allocations: 414.5 kB / 385.7 MB, free: 36.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.3624, allocations: 41.02 kB / 385.8 MB, free: 36.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.3625, allocations: 279.3 kB / 386 MB, free: 36.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.3627, allocations: 111.5 kB / 386.1 MB, free: 36.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.3627, allocations: 5.438 kB / 386.1 MB, free: 36.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.3628, allocations: 325.8 kB / 386.5 MB, free: 36.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.3632, allocations: 110.7 kB / 386.6 MB, free: 36.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005368/0.3637, allocations: 255.3 kB / 386.8 MB, free: 35.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004531/0.3642, allocations: 166.5 kB / 387 MB, free: 35.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3642, allocations: 0 / 387 MB, free: 35.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001134/0.3654, allocations: 397.1 kB / 387.4 MB, free: 35.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.3654, allocations: 41.58 kB / 387.4 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3654, allocations: 4 kB / 387.4 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.3657, allocations: 45.7 kB / 387.5 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.3663, allocations: 67.89 kB / 387.5 MB, free: 35.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.369, allocations: 2.767 MB / 390.3 MB, free: 32.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008243/0.3698, allocations: 47.72 kB / 390.3 MB, free: 32.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.3699, allocations: 15.98 kB / 390.4 MB, free: 32.27 MB / 298.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 (36): * Single equations (assignments): 33 * 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.0002793/0.3702, allocations: 176.1 kB / 390.5 MB, free: 32.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.3703, allocations: 51.39 kB / 390.6 MB, free: 32.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.3704, allocations: 48.7 kB / 390.6 MB, free: 32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3704, allocations: 4 kB / 390.6 MB, free: 31.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3704, allocations: 0 / 390.6 MB, free: 31.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008624/0.3713, allocations: 0.6581 MB / 391.3 MB, free: 31.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.373, allocations: 0.8916 MB / 392.2 MB, free: 30.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3731, allocations: 4 kB / 392.2 MB, free: 30.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006525/0.3737, allocations: 76.27 kB / 392.3 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.3738, allocations: 0 / 392.3 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.3738, allocations: 4 kB / 392.3 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.3738, allocations: 4 kB / 392.3 MB, free: 30.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3738, allocations: 0 / 392.3 MB, free: 30.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3751, allocations: 0.5305 MB / 392.8 MB, free: 29.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.3753, allocations: 156.5 kB / 392.9 MB, free: 29.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.3754, allocations: 12 kB / 393 MB, free: 29.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.376, allocations: 24.05 kB / 393 MB, free: 29.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.3761, allocations: 19.97 kB / 393 MB, free: 29.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.3762, allocations: 12 kB / 393 MB, free: 29.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004153/0.3766, allocations: 291.1 kB / 393.3 MB, free: 29.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3766, allocations: 4 kB / 393.3 MB, free: 29.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006267/0.3772, allocations: 131.8 kB / 393.4 MB, free: 28.99 MB / 298.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 (32): * Single equations (assignments): 32 * 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.001499/0.3787, allocations: 1.076 MB / 394.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.38, allocations: 0.5751 MB / 395.1 MB, free: 27.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.38, allocations: 0 / 395.1 MB, free: 27.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.3804, allocations: 127.8 kB / 395.2 MB, free: 27.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009026/0.3813, allocations: 121.9 kB / 395.3 MB, free: 27.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.3839, allocations: 1.581 MB / 396.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.3842, allocations: 0.8314 MB / 397.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.3845, allocations: 159.4 kB / 397.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3845, allocations: 3.938 kB / 397.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.826/3.21, allocations: 9.501 MB / 407.4 MB, free: 14.89 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat