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.001631/0.001631, allocations: 182.9 kB / 15.8 MB, free: 6.316 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.074/2.074, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001146/0.001146, allocations: 94.86 kB / 270.3 MB, free: 13.36 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.1128/0.1128, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005618/0.0005618, allocations: 16.34 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1224, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.2642, allocations: 80.09 MB / 0.5103 GB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.2645, allocations: 67.97 kB / 0.5104 GB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01811/0.2826, allocations: 3.692 MB / 0.514 GB, free: 6.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.751e-06/0.2827, allocations: 0 / 0.514 GB, free: 6.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.2827, allocations: 7.938 kB / 0.514 GB, free: 6.855 MB / 362.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.001425/0.2842, allocations: 0.5995 MB / 0.5146 GB, free: 6.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.2842, allocations: 12.03 kB / 0.5146 GB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.942e-05/0.2843, allocations: 46.55 kB / 0.5146 GB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.422e-05/0.2844, allocations: 31.62 kB / 0.5147 GB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000586/0.285, allocations: 307.2 kB / 0.515 GB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.2851, allocations: 16.23 kB / 0.515 GB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.735e-05/0.2851, allocations: 19.89 kB / 0.515 GB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.2861, allocations: 365 kB / 0.5153 GB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2862, allocations: 0 / 0.5153 GB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.2862, allocations: 8 kB / 0.5153 GB, free: 5.348 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.2862, allocations: 7.938 kB / 0.5153 GB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003459/0.2866, allocations: 95.89 kB / 0.5154 GB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2877, allocations: 0.5248 MB / 0.516 GB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.2888, allocations: 315.7 kB / 0.5163 GB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.39e-05/0.2889, allocations: 20.12 kB / 0.5163 GB, free: 4.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.2889, allocations: 30.56 kB / 0.5163 GB, free: 4.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.785e-06/0.2889, allocations: 0 / 0.5163 GB, free: 4.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.0036/0.2926, allocations: 1.247 MB / 0.5175 GB, free: 2.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.2927, allocations: 135.2 kB / 0.5177 GB, free: 2.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.2933, allocations: 299.7 kB / 0.5179 GB, free: 2.469 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.2934, allocations: 37.83 kB / 0.518 GB, free: 2.426 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.2935, allocations: 144.8 kB / 0.5181 GB, free: 2.281 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.045e-05/0.2936, allocations: 47.53 kB / 0.5182 GB, free: 2.234 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/0.2937, allocations: 8 kB / 0.5182 GB, free: 2.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.2939, allocations: 346.8 kB / 0.5185 GB, free: 1.879 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.2941, allocations: 60.84 kB / 0.5186 GB, free: 1.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004212/0.2946, allocations: 292.1 kB / 0.5188 GB, free: 1.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.2949, allocations: 119.9 kB / 0.5189 GB, free: 1.309 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.2949, allocations: 0 / 0.5189 GB, free: 1.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009662/0.2959, allocations: 385.2 kB / 0.5193 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.296, allocations: 8.156 kB / 0.5193 GB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.296, allocations: 12 kB / 0.5193 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.059e-05/0.296, allocations: 12 kB / 0.5193 GB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.2965, allocations: 91.83 kB / 0.5194 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.548e-05/0.2966, allocations: 15.89 kB / 0.5194 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000355/0.2969, allocations: 27.83 kB / 0.5195 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.297, allocations: 24 kB / 0.5195 GB, free: 0.7383 MB / 362.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 () * 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 (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.0002811/0.2973, allocations: 161.4 kB / 0.5196 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007833/0.2981, allocations: 273.8 kB / 0.5199 GB, free: 304 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2708/0.5689, allocations: 357.6 kB / 0.5203 GB, free: 84.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.5689, allocations: 3.688 kB / 0.5203 GB, free: 84.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.569, allocations: 0.7031 kB / 0.5203 GB, free: 84.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.569, allocations: 8.734 kB / 0.5203 GB, free: 84.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000568/0.5696, allocations: 314.5 kB / 0.5206 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5696, allocations: 2.297 kB / 0.5206 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.5706, allocations: 119.7 kB / 0.5207 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.5707, allocations: 1.875 kB / 0.5207 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.5707, allocations: 14.23 kB / 0.5207 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.5707, allocations: 1.906 kB / 0.5207 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5707, allocations: 2.219 kB / 0.5207 GB, free: 84.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.5723, allocations: 0.7059 MB / 0.5214 GB, free: 84.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.5725, allocations: 117.7 kB / 0.5215 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.498e-05/0.5726, allocations: 16.67 kB / 0.5215 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.573, allocations: 14.02 kB / 0.5215 GB, free: 83.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.5731, allocations: 13.34 kB / 0.5215 GB, free: 83.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.705e-05/0.5731, allocations: 13.58 kB / 0.5216 GB, free: 83.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004071/0.5735, allocations: 243.5 kB / 0.5218 GB, free: 83.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5735, allocations: 1.375 kB / 0.5218 GB, free: 83.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006751/0.5742, allocations: 65.06 kB / 0.5219 GB, free: 83.86 MB / 362.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 (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.001804/0.576, allocations: 1.404 MB / 0.5232 GB, free: 82.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008368/0.5769, allocations: 282.3 kB / 0.5235 GB, free: 82.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.5769, allocations: 3.875 kB / 0.5235 GB, free: 82.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.5771, allocations: 29.34 kB / 0.5235 GB, free: 82.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009433/0.578, allocations: 192.6 kB / 0.5237 GB, free: 82.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00582/0.5839, allocations: 7.305 MB / 0.5308 GB, free: 76.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.5843, allocations: 0.8101 MB / 0.5316 GB, free: 76.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.5845, allocations: 35.5 kB / 0.5317 GB, free: 76.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.5848, allocations: 113.2 kB / 0.5318 GB, free: 76.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5848, allocations: 0 / 0.5318 GB, free: 76.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.6154, allocations: 6.303 MB / 0.5379 GB, free: 75.02 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.6157, allocations: 189.6 kB / 0.5381 GB, free: 74.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.617/3.233, allocations: 7.844 kB / 0.5381 GB, free: 74.78 MB / 362.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