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.00217/0.002169, allocations: 181.5 kB / 13.23 MB, free: 2.086 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.188/2.188, allocations: 205.2 MB / 219 MB, free: 9.215 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.00113/0.001129, allocations: 90.61 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1055/0.1055, allocations: 12.58 MB / 327.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.352e-05/4.345e-05, allocations: 4 kB / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.48/0.5881, allocations: 80 MB / 0.5044 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.5884, allocations: 70.61 kB / 0.5044 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01587/0.6043, allocations: 3.667 MB / 0.508 GB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.6043, allocations: 0 / 0.508 GB, free: 10.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.6044, allocations: 7.844 kB / 0.508 GB, free: 10.55 MB / 330.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.0008323/0.6052, allocations: 0.5029 MB / 0.5085 GB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.6053, allocations: 11.03 kB / 0.5085 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.6053, allocations: 44.34 kB / 0.5086 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.468e-05/0.6054, allocations: 35.2 kB / 0.5086 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.6059, allocations: 306.8 kB / 0.5089 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.606, allocations: 15.02 kB / 0.5089 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.606, allocations: 15.59 kB / 0.5089 GB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007774/0.6068, allocations: 364 kB / 0.5093 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.6068, allocations: 0 / 0.5093 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.6069, allocations: 6.938 kB / 0.5093 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.527e-06/0.6069, allocations: 3.969 kB / 0.5093 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.6071, allocations: 86.42 kB / 0.5094 GB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008237/0.608, allocations: 0.5237 MB / 0.5099 GB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009547/0.609, allocations: 306.5 kB / 0.5102 GB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.6092, allocations: 135.1 kB / 0.5103 GB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.6093, allocations: 4 kB / 0.5103 GB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.6093, allocations: 45.84 kB / 0.5103 GB, free: 8.977 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.945e-06/0.6094, allocations: 0 / 0.5103 GB, free: 8.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002734/0.6121, allocations: 1.148 MB / 0.5115 GB, free: 8.332 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.6122, allocations: 140.6 kB / 0.5116 GB, free: 8.195 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.6127, allocations: 295 kB / 0.5119 GB, free: 8.078 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.6128, allocations: 32.95 kB / 0.5119 GB, free: 8.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.6129, allocations: 141.8 kB / 0.512 GB, free: 7.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/0.613, allocations: 45.59 kB / 0.5121 GB, free: 7.934 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.613, allocations: 10.5 kB / 0.5121 GB, free: 7.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.6131, allocations: 351.3 kB / 0.5124 GB, free: 7.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.6132, allocations: 56.42 kB / 0.5125 GB, free: 7.602 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.6135, allocations: 286.6 kB / 0.5128 GB, free: 7.305 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.6138, allocations: 109.6 kB / 0.5129 GB, free: 7.273 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.6138, allocations: 0 / 0.5129 GB, free: 7.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007486/0.6145, allocations: 360.4 kB / 0.5132 GB, free: 7.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.6146, allocations: 7.625 kB / 0.5132 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.6146, allocations: 8.438 kB / 0.5132 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.342e-05/0.6146, allocations: 15.47 kB / 0.5132 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.6152, allocations: 97.58 kB / 0.5133 GB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.158e-05/0.6152, allocations: 19.42 kB / 0.5133 GB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.6156, allocations: 24.48 kB / 0.5134 GB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.6156, allocations: 21.97 kB / 0.5134 GB, free: 7.105 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001473/0.6158, allocations: 137.5 kB / 0.5135 GB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006736/0.6165, allocations: 275.8 kB / 0.5138 GB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009268/0.6174, allocations: 349.9 kB / 0.5141 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.6174, allocations: 7.531 kB / 0.5141 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6174, allocations: 0.6562 kB / 0.5141 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.6175, allocations: 7.938 kB / 0.5141 GB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.618, allocations: 318.3 kB / 0.5144 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.618, allocations: 0 / 0.5144 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.619, allocations: 119.6 kB / 0.5145 GB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.6191, allocations: 3.844 kB / 0.5146 GB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.6191, allocations: 11.38 kB / 0.5146 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.6191, allocations: 4 kB / 0.5146 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.6191, allocations: 3.984 kB / 0.5146 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.6203, allocations: 0.6861 MB / 0.5152 GB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.6204, allocations: 116.2 kB / 0.5154 GB, free: 6.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.88e-05/0.6205, allocations: 22.64 kB / 0.5154 GB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.621, allocations: 11.55 kB / 0.5154 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.621, allocations: 7.828 kB / 0.5154 GB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.6211, allocations: 11 kB / 0.5154 GB, free: 6.047 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000341/0.6214, allocations: 242.4 kB / 0.5156 GB, free: 5.949 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6214, allocations: 0 / 0.5156 GB, free: 5.949 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005846/0.622, allocations: 68.06 kB / 0.5157 GB, free: 5.945 MB / 330.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.001382/0.6234, allocations: 1.379 MB / 0.517 GB, free: 4.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006198/0.6241, allocations: 258.9 kB / 0.5173 GB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6241, allocations: 0 / 0.5173 GB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.757e-05/0.6242, allocations: 25.03 kB / 0.5173 GB, free: 4.918 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008213/0.625, allocations: 184 kB / 0.5175 GB, free: 4.891 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.627, allocations: 0.6453 MB / 0.5181 GB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.6273, allocations: 0.8084 MB / 0.5189 GB, free: 3.766 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.6275, allocations: 34.47 kB / 0.5189 GB, free: 3.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.6277, allocations: 111.7 kB / 0.5191 GB, free: 3.734 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.6277, allocations: 0 / 0.5191 GB, free: 3.734 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/0.6651, allocations: 6.212 MB / 0.5251 GB, free: 14.38 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003684/0.6655, allocations: 174.8 kB / 0.5253 GB, free: 14.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.714/3.379, allocations: 11.94 kB / 0.5253 GB, free: 14.13 MB / 346.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