Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009757/0.0009757, allocations: 93.39 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 200 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002558, allocations: 4 kB / 306.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1148, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002365/0.1172, allocations: 1.837 MB / 360 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009514/0.1182, allocations: 0.5893 MB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.813e-05/0.1183, allocations: 3.938 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.451e-05/0.1184, allocations: 19.73 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1186, allocations: 63.83 kB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.1189, allocations: 55.88 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.1192, allocations: 171.6 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.1193, allocations: 64.56 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.1195, allocations: 107.3 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.1197, allocations: 123.4 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.1198, allocations: 12 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.036e-05/0.1198, allocations: 8 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.182e-05/0.1199, allocations: 47.75 kB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.329e-05/0.12, allocations: 61.58 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.1202, allocations: 175.8 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1202, allocations: 3.938 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1202, allocations: 0 / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1202, allocations: 4 kB / 361.5 MB, free: 10.44 MB / 302.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.001046/0.1212, allocations: 0.5724 MB / 362.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.1213, allocations: 8.031 kB / 362.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.571e-05/0.1214, allocations: 54.55 kB / 362.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.1214, allocations: 35.53 kB / 362.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.1219, allocations: 299.3 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.1219, allocations: 8.281 kB / 362.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.1219, allocations: 23.95 kB / 362.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000667/0.1226, allocations: 367.6 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1226, allocations: 4 kB / 362.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1227, allocations: 8 kB / 362.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1227, allocations: 0 / 362.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.1229, allocations: 91.89 kB / 363 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.1236, allocations: 0.5364 MB / 363.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.1243, allocations: 323 kB / 363.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1244, allocations: 8.141 kB / 363.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1244, allocations: 38.55 kB / 363.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.1244, allocations: 0 / 363.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.002162/0.1266, allocations: 1.19 MB / 365.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/0.1267, allocations: 134.7 kB / 365.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.127, allocations: 324.6 kB / 365.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1271, allocations: 37.7 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.563e-05/0.1272, allocations: 144.7 kB / 365.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.1272, allocations: 51.47 kB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.1272, allocations: 4 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1274, allocations: 346.8 kB / 366.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.1275, allocations: 68.72 kB / 366.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.1277, allocations: 281.9 kB / 366.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.1279, allocations: 107.9 kB / 366.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1279, allocations: 4 kB / 366.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005059/0.1284, allocations: 373.4 kB / 366.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1285, allocations: 15.97 kB / 366.9 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1285, allocations: 8 kB / 366.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.1285, allocations: 12 kB / 366.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.1288, allocations: 83.84 kB / 367 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.1288, allocations: 15.92 kB / 367 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.129, allocations: 23.86 kB / 367 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.129, allocations: 24 kB / 367.1 MB, free: 4.418 MB / 302.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.0001606/0.1292, allocations: 161.6 kB / 367.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.1296, allocations: 261.8 kB / 367.5 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006125/0.1302, allocations: 344.6 kB / 367.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1302, allocations: 4.656 kB / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.1303, allocations: 4.062 kB / 367.8 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1303, allocations: 0 / 367.8 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004155/0.1307, allocations: 317.2 kB / 368.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1307, allocations: 0 / 368.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.1312, allocations: 123.8 kB / 368.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.1313, allocations: 3.938 kB / 368.3 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.1313, allocations: 8 kB / 368.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1313, allocations: 7.938 kB / 368.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1313, allocations: 80 / 368.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009097/0.1322, allocations: 0.6935 MB / 369 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.828e-05/0.1323, allocations: 120.6 kB / 369.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/0.1324, allocations: 12 kB / 369.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.1326, allocations: 8.188 kB / 369.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.1327, allocations: 16 kB / 369.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.1327, allocations: 15.98 kB / 369.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.1329, allocations: 239.1 kB / 369.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1329, allocations: 0 / 369.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004049/0.1333, allocations: 63.94 kB / 369.4 MB, free: 1.934 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.001177/0.1345, allocations: 1.385 MB / 370.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004295/0.135, allocations: 266.1 kB / 371.1 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.135, allocations: 0 / 371.1 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.618e-05/0.1351, allocations: 35.92 kB / 371.1 MB, free: 220 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.1356, allocations: 181.5 kB / 371.3 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.184/0.3196, allocations: 6.925 MB / 378.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.3201, allocations: 0.8092 MB / 379 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.3202, allocations: 34.64 kB / 379.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3205, allocations: 110.6 kB / 379.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.605e-06/0.3205, allocations: 0 / 379.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.3449, allocations: 6.15 MB / 385.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/0.3451, allocations: 186.8 kB / 385.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.189, allocations: 2.25 kB / 385.5 MB, free: 12.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat