Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.0009926/0.0009927, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.5 MB / 230.3 MB, free: 7.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 89.98 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.201e-05/2.201e-05, allocations: 4 kB / 337.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1313, allocations: 50.41 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3826/0.514, allocations: 77.33 MB / 464.9 MB, free: 1.484 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.5143, allocations: 79.95 kB / 465 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01016/0.5245, allocations: 3.447 MB / 468.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5245, allocations: 0 / 468.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.5246, allocations: 8 kB / 468.4 MB, free: 13.95 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005963/0.5252, allocations: 0.4907 MB / 468.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5252, allocations: 8.031 kB / 468.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.188e-05/0.5253, allocations: 35.58 kB / 469 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.5257, allocations: 303.9 kB / 469.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.5257, allocations: 4 kB / 469.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.5257, allocations: 12 kB / 469.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001432/0.5259, allocations: 60 kB / 469.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.5261, allocations: 113.5 kB / 469.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5261, allocations: 0 / 469.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.5261, allocations: 3.953 kB / 469.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.5261, allocations: 4 kB / 469.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007509/0.5269, allocations: 496.7 kB / 469.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.5273, allocations: 174.7 kB / 470.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.722e-05/0.5274, allocations: 48.86 kB / 470.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.5275, allocations: 4 kB / 470.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.5275, allocations: 31.62 kB / 470.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.233e-06/0.5275, allocations: 224 / 470.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001183/0.5287, allocations: 0.569 MB / 470.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.5287, allocations: 55.41 kB / 470.8 MB, free: 11.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.529, allocations: 281.2 kB / 471.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.5291, allocations: 25.7 kB / 471.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.246e-05/0.5291, allocations: 156.3 kB / 471.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.5292, allocations: 59.11 kB / 471.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.5292, allocations: 0 / 471.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5294, allocations: 350.8 kB / 471.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.372e-05/0.5295, allocations: 52.38 kB / 471.7 MB, free: 10.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.486e-05/0.5296, allocations: 52.5 kB / 471.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.5297, allocations: 60.91 kB / 471.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.5297, allocations: 4 kB / 471.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002855/0.53, allocations: 193.3 kB / 472 MB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.53, allocations: 5.094 kB / 472 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.53, allocations: 0 / 472 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.5301, allocations: 4 kB / 472 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.5303, allocations: 67.89 kB / 472.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.5304, allocations: 0.7031 kB / 472.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.5305, allocations: 8 kB / 472.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.5305, allocations: 4 kB / 472.1 MB, free: 10.03 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 7.598e-05/0.5306, allocations: 108.9 kB / 472.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002715/0.5309, allocations: 174.3 kB / 472.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.531, allocations: 23.72 kB / 472.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003594/0.5313, allocations: 202 kB / 472.6 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.5313, allocations: 3.984 kB / 472.6 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5314, allocations: 0 / 472.6 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5314, allocations: 0 / 472.6 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003547/0.5317, allocations: 290 kB / 472.9 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5317, allocations: 0 / 472.9 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.5321, allocations: 63.83 kB / 472.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.5321, allocations: 4 kB / 473 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.5321, allocations: 4 kB / 473 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.5322, allocations: 7.984 kB / 473 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.5322, allocations: 4 kB / 473 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.5327, allocations: 355 kB / 473.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-05/0.5328, allocations: 116.6 kB / 473.4 MB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.5328, allocations: 4.062 kB / 473.4 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.533, allocations: 4 kB / 473.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.5331, allocations: 15.97 kB / 473.5 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.5331, allocations: 8 kB / 473.5 MB, free: 8.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002231/0.5333, allocations: 232.6 kB / 473.7 MB, free: 8.359 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5333, allocations: 0 / 473.7 MB, free: 8.359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.5336, allocations: 36 kB / 473.7 MB, free: 8.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0007026/0.5343, allocations: 0.8931 MB / 474.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.5346, allocations: 145.3 kB / 474.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5346, allocations: 0 / 474.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.5347, allocations: 75.92 kB / 474.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.535, allocations: 33.19 kB / 474.9 MB, free: 7.152 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.5364, allocations: 0.6482 MB / 475.5 MB, free: 6.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.5368, allocations: 0.7794 MB / 476.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.5369, allocations: 26.06 kB / 476.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.537, allocations: 95.39 kB / 476.4 MB, free: 5.535 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5371, allocations: 0 / 476.4 MB, free: 5.535 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.5594, allocations: 4.54 MB / 481 MB, free: 1.055 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/0.5596, allocations: 194.9 kB / 481.1 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.438, allocations: 0 / 481.1 MB, free: 0.8008 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat