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.0007827/0.0007826, allocations: 96.56 kB / 17 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008671/0.0008672, allocations: 197.7 kB / 17.91 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.3 MB / 246 MB, free: 11.89 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003032, allocations: 4 kB / 306.8 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1159, allocations: 51.49 MB / 358.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002549/0.1185, allocations: 1.849 MB / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1197, allocations: 0.593 MB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1198, allocations: 0 / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.1199, allocations: 19.8 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.1202, allocations: 59.55 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.1204, allocations: 55.88 kB / 360.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.1207, allocations: 247.1 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.1209, allocations: 68.55 kB / 361.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.1211, allocations: 103.4 kB / 361.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1213, allocations: 123.3 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.954e-05/0.1213, allocations: 8 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.909e-05/0.1213, allocations: 12 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.94e-05/0.1214, allocations: 51.69 kB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.343e-05/0.1215, allocations: 61.58 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.1217, allocations: 179.8 kB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.1217, allocations: 0 / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1217, allocations: 7.938 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1217, allocations: 0 / 361.7 MB, free: 10.57 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.0009848/0.1227, allocations: 0.5724 MB / 362.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1227, allocations: 8.031 kB / 362.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.985e-05/0.1228, allocations: 50.55 kB / 362.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.1229, allocations: 31.53 kB / 362.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.1232, allocations: 311.3 kB / 362.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.1233, allocations: 12.23 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.1233, allocations: 16 kB / 362.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.1239, allocations: 371.6 kB / 363.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.124, allocations: 0 / 363.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.124, allocations: 4 kB / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.124, allocations: 4 kB / 363.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.1242, allocations: 91.89 kB / 363.2 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006572/0.1249, allocations: 0.5325 MB / 363.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.1256, allocations: 323.7 kB / 364 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1258, allocations: 140.5 kB / 364.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1258, allocations: 11.94 kB / 364.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1259, allocations: 30.56 kB / 364.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.806e-06/0.1259, allocations: 0 / 364.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002264/0.1281, allocations: 1.321 MB / 365.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.1283, allocations: 138.7 kB / 365.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.1286, allocations: 324.6 kB / 366 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1287, allocations: 33.83 kB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.043e-05/0.1288, allocations: 145.1 kB / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.1288, allocations: 51.5 kB / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.417e-05/0.1288, allocations: 12 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.129, allocations: 346.8 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.1291, allocations: 64.84 kB / 366.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.1294, allocations: 326.7 kB / 366.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.1296, allocations: 131.8 kB / 367.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1296, allocations: 4 kB / 367.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005832/0.1302, allocations: 408.8 kB / 367.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.1302, allocations: 11.95 kB / 367.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1303, allocations: 8 kB / 367.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.1303, allocations: 12 kB / 367.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.1306, allocations: 100.5 kB / 367.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.1306, allocations: 15.94 kB / 367.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.1308, allocations: 31.83 kB / 367.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.1308, allocations: 24 kB / 367.7 MB, free: 4.141 MB / 302.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.0001692/0.131, allocations: 166.7 kB / 367.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004528/0.1315, allocations: 289.6 kB / 368.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006193/0.1321, allocations: 383.4 kB / 368.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1321, allocations: 8.188 kB / 368.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.1321, allocations: 4 kB / 368.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.1322, allocations: 7.969 kB / 368.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003886/0.1326, allocations: 317.3 kB / 368.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1326, allocations: 0 / 368.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.1331, allocations: 127.8 kB / 368.9 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.1332, allocations: 7.938 kB / 368.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.1332, allocations: 4 kB / 368.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.1332, allocations: 7.953 kB / 368.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1332, allocations: 4 kB / 369 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.1342, allocations: 0.7185 MB / 369.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.463e-05/0.1343, allocations: 112.7 kB / 369.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/0.1343, allocations: 16.06 kB / 369.8 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.1346, allocations: 19.92 kB / 369.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.816e-05/0.1346, allocations: 7.953 kB / 369.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.1347, allocations: 12 kB / 369.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.1349, allocations: 247 kB / 370.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1349, allocations: 0 / 370.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.1354, allocations: 60 kB / 370.1 MB, free: 1.551 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.00128/0.1367, allocations: 1.268 MB / 371.4 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.216/0.3527, allocations: 287.3 kB / 371.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.3527, allocations: 0.6875 kB / 371.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.852e-05/0.3528, allocations: 34.06 kB / 371.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.354, allocations: 213.5 kB / 371.9 MB, free: 19.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003968/0.3579, allocations: 2.297 MB / 374.2 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.3584, allocations: 0.8076 MB / 375 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.3585, allocations: 36.81 kB / 375.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.3588, allocations: 112.6 kB / 375.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of SimCode: time 2.956e-06/0.3588, allocations: 0 / 375.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.3808, allocations: 6.464 MB / 381.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/0.381, allocations: 189.2 kB / 381.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.361, allocations: 0 / 381.8 MB, free: 16.79 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