Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000914/0.0009138, allocations: 100.1 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000245/0.000245, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2451, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09675/0.3419, allocations: 80.12 MB / 481.7 MB, free: 352 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.3422, allocations: 71.97 kB / 481.8 MB, free: 280 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02041/0.3626, allocations: 7.894 MB / 489.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3627, allocations: 0 / 489.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.3627, allocations: 12 kB / 489.7 MB, free: 8.254 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009644/0.3637, allocations: 0.6662 MB / 490.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.937e-05/0.3638, allocations: 12.03 kB / 490.3 MB, free: 7.527 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.3639, allocations: 78.53 kB / 490.4 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.882e-05/0.364, allocations: 63.34 kB / 490.5 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000531/0.3645, allocations: 355.8 kB / 490.8 MB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.3646, allocations: 29 kB / 490.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.3646, allocations: 40 kB / 490.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007104/0.3654, allocations: 495.6 kB / 491.4 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3654, allocations: 0 / 491.4 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.3654, allocations: 23.95 kB / 491.4 MB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3655, allocations: 8 kB / 491.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.366, allocations: 246.2 kB / 491.7 MB, free: 6.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.3686, allocations: 2.805 MB / 494.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.3691, allocations: 162.7 kB / 494.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001857/0.3693, allocations: 81.11 kB / 494.7 MB, free: 2.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.3693, allocations: 38.56 kB / 494.7 MB, free: 2.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.783e-06/0.3693, allocations: 0 / 494.7 MB, free: 2.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001315/0.3706, allocations: 0.6327 MB / 495.4 MB, free: 2.145 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.3707, allocations: 55.41 kB / 495.4 MB, free: 2.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004312/0.3711, allocations: 304.7 kB / 495.7 MB, free: 1.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.3712, allocations: 29.64 kB / 495.8 MB, free: 1.738 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.3714, allocations: 306.9 kB / 496 MB, free: 1.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.3714, allocations: 63.09 kB / 496.1 MB, free: 1.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.3715, allocations: 8 kB / 496.1 MB, free: 1.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3717, allocations: 342.8 kB / 496.5 MB, free: 1.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.3718, allocations: 67.95 kB / 496.5 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.3721, allocations: 220.8 kB / 496.7 MB, free: 0.6641 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y ($START.inverseCapacity.mass.T = $START.directCapacity.heatFlowToTemperature.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006553/0.3727, allocations: 280.9 kB / 497 MB, free: 388 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3728, allocations: 3.938 kB / 497 MB, free: 384 kB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006677/0.3734, allocations: 358.1 kB / 497.4 MB, free: 16 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3735, allocations: 12.03 kB / 497.4 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3735, allocations: 4 kB / 497.4 MB, free: 0 / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.3736, allocations: 36.84 kB / 497.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.3739, allocations: 75.84 kB / 497.5 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.3752, allocations: 1.464 MB / 499 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.3755, allocations: 31.84 kB / 499 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.3755, allocations: 20 kB / 499 MB, free: 14.23 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000254/0.3758, allocations: 173.7 kB / 499.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.892e-05/0.3759, allocations: 35.62 kB / 499.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.834e-05/0.376, allocations: 35.58 kB / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.376, allocations: 4 kB / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.376, allocations: 0 / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.376, allocations: 0 / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009923/0.377, allocations: 0.6638 MB / 499.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.377, allocations: 3.984 kB / 499.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.3772, allocations: 39.88 kB / 500 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.817e-05/0.3773, allocations: 24.84 kB / 500 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.3773, allocations: 4 kB / 500 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.3784, allocations: 1.324 MB / 0.4896 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3784, allocations: 0 / 0.4896 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.3789, allocations: 389.7 kB / 0.4899 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.914e-05/0.379, allocations: 104.6 kB / 0.49 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.3791, allocations: 4.031 kB / 0.49 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.3792, allocations: 16 kB / 0.49 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.3793, allocations: 7.984 kB / 0.4901 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.3793, allocations: 11.95 kB / 0.4901 GB, free: 11.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002706/0.3796, allocations: 231.2 kB / 0.4903 GB, free: 10.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3796, allocations: 0 / 0.4903 GB, free: 10.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004765/0.38, allocations: 68 kB / 0.4904 GB, free: 10.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.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 (15): * Single equations (assignments): 14 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009242/0.381, allocations: 0.987 MB / 0.4913 GB, free: 9.844 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005952/0.3816, allocations: 313.2 kB / 0.4916 GB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3816, allocations: 1.375 kB / 0.4916 GB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.3819, allocations: 198.6 kB / 0.4918 GB, free: 9.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.3822, allocations: 33.56 kB / 0.4918 GB, free: 9.281 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00482/0.387, allocations: 5.574 MB / 0.4973 GB, free: 3.559 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.3876, allocations: 0.8226 MB / 0.4981 GB, free: 2.707 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.3877, allocations: 43.25 kB / 0.4981 GB, free: 2.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.3879, allocations: 155.4 kB / 0.4983 GB, free: 2.516 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.388, allocations: 0 / 0.4983 GB, free: 2.516 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2432/0.6312, allocations: 6.054 MB / 0.5042 GB, free: 99.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002777/0.6315, allocations: 213.3 kB / 0.5044 GB, free: 99.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.733, allocations: 0.5 kB / 0.5044 GB, free: 99.59 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat