Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001675/0.001675, allocations: 190.5 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.383/2.383, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001228/0.001228, allocations: 98.84 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1027/0.1027, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005669/0.000567, allocations: 13.81 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1087, allocations: 50.38 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002561/0.1113, allocations: 1.827 MB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1126, allocations: 0.6132 MB / 444.9 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1128, allocations: 0 / 444.9 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.1129, allocations: 15.8 kB / 444.9 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1132, allocations: 71.75 kB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.1136, allocations: 57.62 kB / 445.1 MB, free: 8.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002721/0.1139, allocations: 179.3 kB / 445.2 MB, free: 8.047 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.114, allocations: 56.72 kB / 445.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.1142, allocations: 91.55 kB / 445.4 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.1144, allocations: 127.3 kB / 445.5 MB, free: 7.781 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.1145, allocations: 12 kB / 445.5 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.142e-05/0.1145, allocations: 8 kB / 445.5 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.1146, allocations: 55.73 kB / 445.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.782e-05/0.1147, allocations: 57.58 kB / 445.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.1149, allocations: 164.4 kB / 445.8 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.1149, allocations: 0 / 445.8 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1149, allocations: 0 / 445.8 MB, free: 7.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1149, allocations: 4 kB / 445.8 MB, free: 7.48 MB / 282.7 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.00129/0.1162, allocations: 0.584 MB / 446.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1163, allocations: 8.031 kB / 446.4 MB, free: 6.84 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.281e-05/0.1164, allocations: 50.55 kB / 446.4 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.848e-05/0.1164, allocations: 31.62 kB / 446.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.1169, allocations: 315.2 kB / 446.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.1169, allocations: 20.2 kB / 446.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.117, allocations: 12 kB / 446.8 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008366/0.1178, allocations: 384.6 kB / 447.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1179, allocations: 0 / 447.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.1179, allocations: 12 kB / 447.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1179, allocations: 4 kB / 447.2 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.1182, allocations: 87.95 kB / 447.3 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008084/0.1191, allocations: 0.5326 MB / 447.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009875/0.1201, allocations: 311.9 kB / 448.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.1201, allocations: 8.047 kB / 448.1 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.1201, allocations: 34.56 kB / 448.2 MB, free: 4.898 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.255e-06/0.1202, allocations: 4 kB / 448.2 MB, free: 4.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.003025/0.1232, allocations: 1.217 MB / 449.4 MB, free: 3.586 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1234, allocations: 134.8 kB / 449.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004771/0.1238, allocations: 332.6 kB / 449.8 MB, free: 3.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.1239, allocations: 29.7 kB / 449.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.124, allocations: 144.8 kB / 450 MB, free: 2.906 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.933e-05/0.1241, allocations: 43.55 kB / 450.1 MB, free: 2.863 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-05/0.1241, allocations: 4 kB / 450.1 MB, free: 2.859 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.1242, allocations: 350.8 kB / 450.4 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1244, allocations: 72.7 kB / 450.5 MB, free: 2.434 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.1247, allocations: 273.7 kB / 450.7 MB, free: 2.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.125, allocations: 115.8 kB / 450.9 MB, free: 1.953 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.125, allocations: 0 / 450.9 MB, free: 1.953 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000809/0.1258, allocations: 369.2 kB / 451.2 MB, free: 1.586 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1259, allocations: 12.84 kB / 451.2 MB, free: 1.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.1259, allocations: 8 kB / 451.2 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.1259, allocations: 19.94 kB / 451.3 MB, free: 1.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.1264, allocations: 83.84 kB / 451.3 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.1264, allocations: 15.94 kB / 451.4 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.1268, allocations: 23.89 kB / 451.4 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.1268, allocations: 23.94 kB / 451.4 MB, free: 1.402 MB / 282.7 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.0002247/0.127, allocations: 169.4 kB / 451.6 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006295/0.1277, allocations: 257.2 kB / 451.8 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008182/0.1285, allocations: 341.3 kB / 452.1 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.1285, allocations: 7.953 kB / 452.2 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.1285, allocations: 4 kB / 452.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1286, allocations: 3.984 kB / 452.2 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.129, allocations: 309.4 kB / 452.5 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.129, allocations: 4 kB / 452.5 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.13, allocations: 123.8 kB / 452.6 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/0.1301, allocations: 0 / 452.6 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.1301, allocations: 11.94 kB / 452.6 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.1301, allocations: 0 / 452.6 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1301, allocations: 8.141 kB / 452.6 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.1317, allocations: 0.6898 MB / 453.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1319, allocations: 112.6 kB / 453.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.132, allocations: 23.94 kB / 453.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.1324, allocations: 8 kB / 453.4 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.1325, allocations: 12.06 kB / 453.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.1325, allocations: 11.98 kB / 453.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004179/0.1329, allocations: 247.1 kB / 453.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1329, allocations: 0 / 453.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006309/0.1336, allocations: 52 kB / 453.8 MB, free: 14.92 MB / 298.7 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.001986/0.1356, allocations: 1.386 MB / 455.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008212/0.1364, allocations: 267.7 kB / 455.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1364, allocations: 1.812 kB / 455.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1366, allocations: 35.92 kB / 455.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009081/0.1375, allocations: 185.6 kB / 455.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007195/0.1447, allocations: 6.974 MB / 462.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.1453, allocations: 0.8073 MB / 463.4 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.1455, allocations: 30.97 kB / 463.4 MB, free: 4.984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.1458, allocations: 115.4 kB / 463.5 MB, free: 4.875 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1458, allocations: 0 / 463.5 MB, free: 4.875 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0357/0.1815, allocations: 6.17 MB / 469.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003521/0.182, allocations: 202.3 kB / 469.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.831/3.013, allocations: 0 / 469.9 MB, free: 14.47 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat