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.001261/0.001261, allocations: 176.8 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.4 MB / 222 MB, free: 13.75 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.0007965/0.0007966, allocations: 86.36 kB / 270.3 MB, free: 13.28 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.0824/0.0824, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006657/0.0006659, allocations: 12.75 kB / 392.1 MB, free: 54.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.115, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002508/0.1175, allocations: 1.842 MB / 444.3 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1187, allocations: 0.6092 MB / 444.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.119, allocations: 4 kB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.1192, allocations: 15.8 kB / 445 MB, free: 8.352 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.1196, allocations: 59.61 kB / 445 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004103/0.12, allocations: 59.86 kB / 445.1 MB, free: 8.234 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000243/0.1202, allocations: 254.8 kB / 445.3 MB, free: 7.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1204, allocations: 56.7 kB / 445.4 MB, free: 7.934 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1206, allocations: 95.45 kB / 445.5 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.1207, allocations: 135.3 kB / 445.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.1208, allocations: 12 kB / 445.6 MB, free: 7.695 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.221e-05/0.1208, allocations: 8 kB / 445.6 MB, free: 7.688 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.1209, allocations: 47.7 kB / 445.7 MB, free: 7.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.85e-05/0.1209, allocations: 65.52 kB / 445.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.1211, allocations: 168.4 kB / 445.9 MB, free: 7.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1211, allocations: 4 kB / 445.9 MB, free: 7.402 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1211, allocations: 0 / 445.9 MB, free: 7.402 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1211, allocations: 0 / 445.9 MB, free: 7.402 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.001034/0.1221, allocations: 0.5879 MB / 446.5 MB, free: 6.766 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1222, allocations: 12.03 kB / 446.5 MB, free: 6.754 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.1222, allocations: 46.55 kB / 446.6 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.1223, allocations: 31.62 kB / 446.6 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.1226, allocations: 307.2 kB / 446.9 MB, free: 6.328 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1227, allocations: 12.28 kB / 446.9 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.531e-05/0.1227, allocations: 12 kB / 446.9 MB, free: 6.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005632/0.1233, allocations: 376.7 kB / 447.3 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1233, allocations: 0 / 447.3 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.1233, allocations: 4 kB / 447.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1233, allocations: 7.938 kB / 447.3 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.1235, allocations: 95.95 kB / 447.4 MB, free: 5.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.1241, allocations: 0.5365 MB / 447.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006066/0.1248, allocations: 308.4 kB / 448.2 MB, free: 4.887 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.125, allocations: 146.8 kB / 448.4 MB, free: 4.738 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.125, allocations: 7.938 kB / 448.4 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.125, allocations: 46.44 kB / 448.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.125, allocations: 0 / 448.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.002019/0.1271, allocations: 1.335 MB / 449.7 MB, free: 3.246 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.953e-05/0.1272, allocations: 142.4 kB / 449.9 MB, free: 3.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1274, allocations: 332.6 kB / 450.2 MB, free: 2.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1275, allocations: 33.7 kB / 450.2 MB, free: 2.703 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.1276, allocations: 141.1 kB / 450.4 MB, free: 2.562 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.1276, allocations: 51.53 kB / 450.4 MB, free: 2.512 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.1276, allocations: 11.94 kB / 450.4 MB, free: 2.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.855e-05/0.1277, allocations: 346.8 kB / 450.8 MB, free: 2.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.1279, allocations: 72.83 kB / 450.9 MB, free: 2.082 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1281, allocations: 318.8 kB / 451.2 MB, free: 1.645 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.1283, allocations: 127.8 kB / 451.3 MB, free: 1.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1283, allocations: 0 / 451.3 MB, free: 1.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005367/0.1288, allocations: 417.4 kB / 451.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.1289, allocations: 16.03 kB / 451.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1289, allocations: 8 kB / 451.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.1289, allocations: 12.19 kB / 451.7 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.1291, allocations: 91.83 kB / 451.8 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.1292, allocations: 15.94 kB / 451.8 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.1294, allocations: 27.91 kB / 451.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.1294, allocations: 27.98 kB / 451.9 MB, free: 0.9102 MB / 282.7 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.0001335/0.1296, allocations: 179.4 kB / 452.1 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/0.1299, allocations: 285 kB / 452.3 MB, free: 452 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005282/0.1305, allocations: 384.1 kB / 452.7 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1305, allocations: 8 kB / 452.7 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1305, allocations: 0 / 452.7 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1305, allocations: 4 kB / 452.7 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.1309, allocations: 321.4 kB / 453 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.1309, allocations: 3.938 kB / 453.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005863/0.1315, allocations: 131.8 kB / 453.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.206e-05/0.1316, allocations: 7.953 kB / 453.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.1316, allocations: 7.938 kB / 453.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1316, allocations: 4 kB / 453.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1316, allocations: 0 / 453.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1326, allocations: 0.7147 MB / 453.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.1328, allocations: 120.6 kB / 454 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.1328, allocations: 19.89 kB / 454.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.1331, allocations: 8 kB / 454.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.1331, allocations: 11.98 kB / 454.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.1332, allocations: 8 kB / 454.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003048/0.1335, allocations: 255.1 kB / 454.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1335, allocations: 3.938 kB / 454.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004264/0.1339, allocations: 64 kB / 454.4 MB, free: 14.3 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 (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.001224/0.1351, allocations: 1.264 MB / 455.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.1357, allocations: 297.2 kB / 455.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1357, allocations: 0 / 455.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.86e-05/0.1358, allocations: 27.98 kB / 456 MB, free: 12.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008835/0.1367, allocations: 213.4 kB / 456.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004146/0.1408, allocations: 2.327 MB / 458.5 MB, free: 9.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.1413, allocations: 0.8119 MB / 459.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.1414, allocations: 39.25 kB / 459.4 MB, free: 9.121 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.1416, allocations: 119.4 kB / 459.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of SimCode: time 6.92e-07/0.1416, allocations: 0 / 459.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.1642, allocations: 6.477 MB / 466 MB, free: 2.527 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.1644, allocations: 200.2 kB / 466.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.412, allocations: 0 / 466.2 MB, free: 2.289 MB / 298.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