Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007677/0.0007679, allocations: 88.27 kB / 16.32 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007775/0.0007775, allocations: 179.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002321/0.0002321, allocations: 5.094 kB / 300.9 MB, free: 5.523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09766, allocations: 50.43 MB / 351.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002929/0.1006, allocations: 1.846 MB / 353.2 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.1018, allocations: 0.5697 MB / 353.7 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.102, allocations: 4 kB / 353.8 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.1021, allocations: 15.8 kB / 353.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.1024, allocations: 55.55 kB / 353.8 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.1027, allocations: 59.94 kB / 353.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.103, allocations: 247 kB / 354.1 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.1032, allocations: 60.7 kB / 354.2 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.1033, allocations: 95.44 kB / 354.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.1035, allocations: 119.4 kB / 354.4 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.1036, allocations: 12 kB / 354.4 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.201e-05/0.1036, allocations: 12 kB / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.283e-05/0.1037, allocations: 47.7 kB / 354.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.1037, allocations: 65.45 kB / 354.5 MB, free: 8.121 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.104, allocations: 183.5 kB / 354.7 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.104, allocations: 0 / 354.7 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1041, allocations: 0 / 354.7 MB, free: 7.941 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1041, allocations: 4 kB / 354.7 MB, free: 7.938 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001215/0.1053, allocations: 0.5724 MB / 355.3 MB, free: 7.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.032e-05/0.1054, allocations: 12.02 kB / 355.3 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.87e-05/0.1055, allocations: 46.52 kB / 355.3 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.1055, allocations: 35.53 kB / 355.4 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.1061, allocations: 307.2 kB / 355.7 MB, free: 6.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.1062, allocations: 8.281 kB / 355.7 MB, free: 6.867 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.1062, allocations: 16 kB / 355.7 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008445/0.1071, allocations: 377 kB / 356.1 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1071, allocations: 0 / 356.1 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.1071, allocations: 15.95 kB / 356.1 MB, free: 6.449 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1071, allocations: 4 kB / 356.1 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.1073, allocations: 87.89 kB / 356.2 MB, free: 6.359 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007323/0.1081, allocations: 0.5326 MB / 356.7 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000652/0.1087, allocations: 321.9 kB / 357 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.109, allocations: 135 kB / 357.1 MB, free: 5.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.109, allocations: 7.938 kB / 357.2 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1091, allocations: 42.5 kB / 357.2 MB, free: 5.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.833e-06/0.1091, allocations: 0 / 357.2 MB, free: 5.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002529/0.1116, allocations: 1.32 MB / 358.5 MB, free: 3.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.1118, allocations: 138.6 kB / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.1122, allocations: 332.5 kB / 359 MB, free: 3.324 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.1122, allocations: 37.7 kB / 359 MB, free: 3.281 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1124, allocations: 145.1 kB / 359.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.1124, allocations: 43.53 kB / 359.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.1124, allocations: 8.031 kB / 359.2 MB, free: 3.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.1126, allocations: 350.8 kB / 359.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.1128, allocations: 72.83 kB / 359.6 MB, free: 2.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.1131, allocations: 314.8 kB / 359.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.1133, allocations: 135.8 kB / 360.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1133, allocations: 4 kB / 360.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006588/0.114, allocations: 405.3 kB / 360.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.114, allocations: 12 kB / 360.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.114, allocations: 11.98 kB / 360.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.114, allocations: 12 kB / 360.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.1143, allocations: 95.78 kB / 360.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.402e-05/0.1144, allocations: 19.92 kB / 360.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.1146, allocations: 27.86 kB / 360.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.1146, allocations: 24 kB / 360.7 MB, free: 1.496 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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 0.0002042/0.1148, allocations: 173.8 kB / 360.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004717/0.1153, allocations: 289.4 kB / 361.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007037/0.116, allocations: 375.5 kB / 361.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.116, allocations: 4 kB / 361.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.116, allocations: 0 / 361.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.1161, allocations: 7.984 kB / 361.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003998/0.1165, allocations: 325.3 kB / 361.8 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1165, allocations: 4 kB / 361.8 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/0.117, allocations: 131.8 kB / 361.9 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.117, allocations: 0 / 361.9 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.1171, allocations: 11.98 kB / 361.9 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.1171, allocations: 4 kB / 362 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1171, allocations: 0 / 362 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.1181, allocations: 0.7187 MB / 362.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.63e-05/0.1182, allocations: 112.7 kB / 362.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.573e-05/0.1183, allocations: 16 kB / 362.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.1185, allocations: 15.98 kB / 362.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.1185, allocations: 12 kB / 362.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.1186, allocations: 19.92 kB / 362.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000259/0.1188, allocations: 243 kB / 363.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1189, allocations: 0 / 363.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004443/0.1193, allocations: 64 kB / 363.1 MB, free: 14.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * 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.00139/0.1207, allocations: 1.268 MB / 364.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005311/0.1212, allocations: 293.3 kB / 364.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1213, allocations: 3.938 kB / 364.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.534e-05/0.1213, allocations: 29.56 kB / 364.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007628/0.1221, allocations: 212.8 kB / 364.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00365/0.1258, allocations: 2.301 MB / 367.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.1262, allocations: 0.8112 MB / 368.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.1264, allocations: 31.28 kB / 368.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.1266, allocations: 119.4 kB / 368.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1266, allocations: 0 / 368.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.1454, allocations: 6.446 MB / 374.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.1456, allocations: 193.2 kB / 374.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.032, allocations: 0 / 374.8 MB, free: 3.078 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat