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.0009409/0.0009409, allocations: 95.95 kB / 16.3 MB, free: 5.992 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.001612/0.001612, allocations: 182.9 kB / 17.2 MB, free: 5.914 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.359/1.359, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002876, allocations: 5.844 kB / 300.8 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002314/0.1122, allocations: 1.827 MB / 353 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009209/0.1132, allocations: 0.5658 MB / 353.6 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1133, allocations: 4 kB / 353.6 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.083e-05/0.1134, allocations: 15.8 kB / 353.6 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.1136, allocations: 75.73 kB / 353.7 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.1139, allocations: 59.81 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.1141, allocations: 163.6 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.1142, allocations: 60.66 kB / 354 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1144, allocations: 99.47 kB / 354.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.1145, allocations: 115.4 kB / 354.2 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.1146, allocations: 12 kB / 354.2 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.79e-05/0.1146, allocations: 8 kB / 354.2 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.1147, allocations: 55.73 kB / 354.3 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.1147, allocations: 57.58 kB / 354.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.1149, allocations: 179.5 kB / 354.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1149, allocations: 3.938 kB / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1149, allocations: 4 kB / 354.5 MB, free: 8.344 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1149, allocations: 0 / 354.5 MB, free: 8.344 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.0009561/0.1159, allocations: 0.5711 MB / 355.1 MB, free: 7.727 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.1159, allocations: 16.02 kB / 355.1 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.871e-05/0.116, allocations: 46.52 kB / 355.1 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.486e-05/0.1161, allocations: 39.47 kB / 355.2 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.1164, allocations: 303.3 kB / 355.5 MB, free: 7.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1165, allocations: 16.22 kB / 355.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.1165, allocations: 16 kB / 355.5 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005935/0.1171, allocations: 369 kB / 355.9 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1171, allocations: 4 kB / 355.9 MB, free: 6.867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.1171, allocations: 15.89 kB / 355.9 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.1172, allocations: 7.984 kB / 355.9 MB, free: 6.844 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.1174, allocations: 91.89 kB / 356 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006857/0.1181, allocations: 0.521 MB / 356.5 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000663/0.1187, allocations: 331.6 kB / 356.8 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.1188, allocations: 4.062 kB / 356.8 MB, free: 5.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1188, allocations: 34.56 kB / 356.9 MB, free: 5.777 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.1188, allocations: 0 / 356.9 MB, free: 5.777 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.002014/0.1208, allocations: 1.202 MB / 358.1 MB, free: 4.488 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.1209, allocations: 139.3 kB / 358.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/0.1213, allocations: 320.6 kB / 358.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1213, allocations: 29.7 kB / 358.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.1214, allocations: 144.8 kB / 358.7 MB, free: 3.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.1215, allocations: 47.53 kB / 358.7 MB, free: 3.773 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.1215, allocations: 4 kB / 358.7 MB, free: 3.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1216, allocations: 354.7 kB / 359.1 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.1218, allocations: 68.73 kB / 359.2 MB, free: 3.344 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.122, allocations: 278 kB / 359.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.1222, allocations: 115.9 kB / 359.5 MB, free: 2.859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1222, allocations: 0 / 359.5 MB, free: 2.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005175/0.1228, allocations: 369.4 kB / 359.9 MB, free: 2.492 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1228, allocations: 12 kB / 359.9 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1228, allocations: 8 kB / 359.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1228, allocations: 12 kB / 359.9 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.1231, allocations: 83.83 kB / 360 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.1231, allocations: 11.94 kB / 360 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.1233, allocations: 23.94 kB / 360 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.1233, allocations: 20 kB / 360.1 MB, free: 2.324 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (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 prepare postOptimizeDAE: time 0.0001507/0.1235, allocations: 169.6 kB / 360.2 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003984/0.1239, allocations: 265.7 kB / 360.5 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005511/0.1244, allocations: 344.6 kB / 360.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1244, allocations: 4 kB / 360.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.1245, allocations: 0 / 360.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1245, allocations: 3.984 kB / 360.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.1248, allocations: 317.4 kB / 361.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1248, allocations: 0 / 361.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/0.1254, allocations: 115.9 kB / 361.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.1254, allocations: 4 kB / 361.3 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.1254, allocations: 11.98 kB / 361.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1254, allocations: 4 kB / 361.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1254, allocations: 3.938 kB / 361.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000866/0.1263, allocations: 0.6897 MB / 362 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.58e-05/0.1264, allocations: 124.6 kB / 362.1 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.1264, allocations: 12 kB / 362.1 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.1267, allocations: 8 kB / 362.1 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.075e-05/0.1267, allocations: 12.05 kB / 362.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.1268, allocations: 12 kB / 362.1 MB, free: 132 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.127, allocations: 243 kB / 362.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.127, allocations: 0 / 362.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1274, allocations: 56 kB / 362.4 MB, free: 15.84 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 (39): * Single equations (assignments): 39 * 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.001178/0.1286, allocations: 1.386 MB / 363.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.129, allocations: 266.1 kB / 364.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1291, allocations: 0 / 364.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.631e-05/0.1291, allocations: 35.92 kB / 364.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.1297, allocations: 184.9 kB / 364.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004869/0.1346, allocations: 6.949 MB / 371.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.135, allocations: 0.8034 MB / 372 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.1351, allocations: 34.95 kB / 372.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.1353, allocations: 107.4 kB / 372.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1353, allocations: 0 / 372.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.1522, allocations: 6.137 MB / 378.3 MB, free: 15.83 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/0.1525, allocations: 194.2 kB / 378.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.012, allocations: 0 / 378.5 MB, free: 15.59 MB / 318.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