Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008477/0.0008477, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009242/0.0009242, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.262/2.262, allocations: 409.4 MB / 0.684 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 15.92 kB / 0.8378 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6001/0.6004, allocations: 146.8 MB / 0.9811 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001329/0.6018, allocations: 1.186 MB / 0.9823 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005686/0.6024, allocations: 427.3 kB / 0.9827 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.092e-05/0.6024, allocations: 0 / 0.9827 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.335e-05/0.6025, allocations: 3.984 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.912e-05/0.6026, allocations: 11.88 kB / 0.9827 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.6027, allocations: 39.89 kB / 0.9827 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.6029, allocations: 79.77 kB / 0.9828 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.415e-05/0.603, allocations: 16.16 kB / 0.9828 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.6031, allocations: 39.84 kB / 0.9829 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.223e-05/0.6031, allocations: 39.88 kB / 0.9829 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.6032, allocations: 4 kB / 0.9829 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.454e-05/0.6032, allocations: 4 kB / 0.9829 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.6032, allocations: 15.92 kB / 0.9829 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.207e-05/0.6033, allocations: 41.64 kB / 0.983 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.104e-05/0.6034, allocations: 50.16 kB / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6034, allocations: 0 / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.074e-06/0.6034, allocations: 0 / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.6034, allocations: 0 / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005491/0.6039, allocations: 446.4 kB / 0.9834 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.604, allocations: 8.031 kB / 0.9835 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.752e-05/0.604, allocations: 38.56 kB / 0.9835 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.6041, allocations: 8 kB / 0.9835 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.6042, allocations: 194.9 kB / 0.9837 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.6043, allocations: 0 / 0.9837 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.6043, allocations: 8 kB / 0.9837 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.6046, allocations: 129.6 kB / 0.9838 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.6046, allocations: 0 / 0.9838 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.6046, allocations: 7.984 kB / 0.9838 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.6046, allocations: 7.875 kB / 0.9838 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.6049, allocations: 103.9 kB / 0.9839 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00046/0.6054, allocations: 344.6 kB / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.6056, allocations: 118.5 kB / 0.9844 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.6058, allocations: 84.94 kB / 0.9845 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.6058, allocations: 0 / 0.9845 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.6061, allocations: 131.3 kB / 0.9846 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.6061, allocations: 0 / 0.9846 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006191/0.6068, allocations: 291.2 kB / 0.9849 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.6068, allocations: 89.11 kB / 0.9849 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.6069, allocations: 129.7 kB / 0.9851 GB, free: 2 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.6069, allocations: 33.7 kB / 0.9851 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.897e-05/0.607, allocations: 96.06 kB / 0.9852 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.607, allocations: 19.88 kB / 0.9852 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.607, allocations: 4 kB / 0.9852 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.532e-05/0.6071, allocations: 322.8 kB / 0.9855 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.6073, allocations: 71.95 kB / 0.9856 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.6075, allocations: 75.89 kB / 0.9857 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.6076, allocations: 115.4 kB / 0.9858 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6077, allocations: 3.953 kB / 0.9858 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004324/0.6081, allocations: 272.8 kB / 0.986 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.46e-05/0.6081, allocations: 64.81 kB / 0.9861 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6082, allocations: 4 kB / 0.9861 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.6082, allocations: 0 / 0.9861 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.6083, allocations: 19.97 kB / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.6083, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.6084, allocations: 35.92 kB / 0.9862 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.6085, allocations: 4 kB / 0.9862 GB, free: 0.8203 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001048/0.6086, allocations: 155.5 kB / 0.9863 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.6086, allocations: 11.86 kB / 0.9863 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.6086, allocations: 8.375 kB / 0.9863 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.6086, allocations: 4 kB / 0.9863 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.6086, allocations: 0 / 0.9863 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.6087, allocations: 3.984 kB / 0.9863 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.6088, allocations: 185.6 kB / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.6088, allocations: 4 kB / 0.9865 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.403e-05/0.6089, allocations: 32.05 kB / 0.9865 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.6089, allocations: 0 / 0.9865 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.6089, allocations: 4 kB / 0.9865 GB, free: 360 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.6089, allocations: 4 kB / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.6089, allocations: 0 / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004175/0.6093, allocations: 258.6 kB / 0.9868 GB, free: 72 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.455e-05/0.6094, allocations: 85.02 kB / 0.9869 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.6094, allocations: 7.953 kB / 0.9869 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.6096, allocations: 31.97 kB / 0.9869 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.6097, allocations: 31.95 kB / 0.9869 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.6097, allocations: 8.094 kB / 0.987 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.6098, allocations: 101.7 kB / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6098, allocations: 0 / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0001974/0.61, allocations: 31.98 kB / 0.9871 GB, free: 15.76 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0006457/0.6106, allocations: 0.7977 MB / 0.9879 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004264/0.6111, allocations: 278.7 kB / 0.9881 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6111, allocations: 3.938 kB / 0.9881 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.6113, allocations: 151.3 kB / 0.9883 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.6115, allocations: 15.95 kB / 0.9883 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.6128, allocations: 0.7868 MB / 0.9891 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001905/0.613, allocations: 0.6926 MB / 0.9897 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.967e-05/0.613, allocations: 12.17 kB / 0.9897 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.6131, allocations: 19.42 kB / 0.9898 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.6131, allocations: 7.938 kB / 0.9898 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9639/1.577, allocations: 2.513 MB / 0.9922 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002387/1.577, allocations: 196.2 kB / 0.9924 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/3.227, allocations: 0 / 0.9924 GB, free: 10.27 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat does not exist to compare? outputFormat=mat