Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.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.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect",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.001408/0.001408, allocations: 86.33 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.001435/0.001435, 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.649/1.649, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.638/2.638, allocations: 409.4 MB / 0.684 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003728, allocations: 12 kB / 0.8378 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7191/0.7195, allocations: 146.8 MB / 0.9812 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect): time 0.002653/0.7222, allocations: 1.804 MB / 0.9829 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002834/0.725, allocations: 2.405 MB / 0.9853 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.7252, allocations: 3.938 kB / 0.9853 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.7263, allocations: 0.5118 MB / 0.9858 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.7266, allocations: 103.5 kB / 0.9859 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.7272, allocations: 201.1 kB / 0.9861 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.7276, allocations: 338.2 kB / 0.9864 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.7277, allocations: 69.05 kB / 0.9864 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.7279, allocations: 131.4 kB / 0.9866 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.7281, allocations: 143.2 kB / 0.9867 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.7281, allocations: 4 kB / 0.9867 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.7282, allocations: 51.91 kB / 0.9868 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.7284, allocations: 123.6 kB / 0.9869 GB, free: 428 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.7285, allocations: 133.3 kB / 0.987 GB, free: 288 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.729, allocations: 0.5456 MB / 0.9875 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.729, allocations: 0 / 0.9875 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.543e-06/0.729, allocations: 0 / 0.9875 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.729, allocations: 0 / 0.9875 GB, free: 15.73 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001109/0.7301, allocations: 0.8448 MB / 0.9884 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.7302, allocations: 11.97 kB / 0.9884 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.7302, allocations: 38.56 kB / 0.9884 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.111e-05/0.7303, allocations: 71.06 kB / 0.9885 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005037/0.7308, allocations: 411.6 kB / 0.9889 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.7309, allocations: 4 kB / 0.9889 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.7309, allocations: 4 kB / 0.9889 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.7311, allocations: 108.1 kB / 0.989 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.7311, allocations: 0 / 0.989 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.7311, allocations: 0 / 0.989 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.7312, allocations: 0 / 0.989 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.7313, allocations: 43.97 kB / 0.989 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007265/0.732, allocations: 0.5239 MB / 0.9895 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.7324, allocations: 106.6 kB / 0.9896 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.506e-05/0.7325, allocations: 32.84 kB / 0.9897 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.7325, allocations: 4 kB / 0.9897 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.7327, allocations: 87.39 kB / 0.9898 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.7327, allocations: 0 / 0.9898 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0003944/0.7331, allocations: 196.8 kB / 0.9899 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.7332, allocations: 106.8 kB / 0.99 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.7343, allocations: 0.9148 MB / 0.9909 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.7343, allocations: 25.7 kB / 0.991 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.7346, allocations: 320 kB / 0.9913 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.7346, allocations: 7.812 kB / 0.9913 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-06/0.7347, allocations: 8 kB / 0.9913 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.7348, allocations: 310 kB / 0.9916 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.007e-05/0.7349, allocations: 31.92 kB / 0.9916 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.878e-05/0.735, allocations: 80.2 kB / 0.9917 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 8e-05/0.7351, allocations: 28 kB / 0.9917 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.7351, allocations: 3.953 kB / 0.9917 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000263/0.7353, allocations: 180.7 kB / 0.9919 GB, free: 11 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.7354, allocations: 4 kB / 0.9919 GB, free: 11 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.7354, allocations: 0 / 0.9919 GB, free: 11 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.7354, allocations: 0 / 0.9919 GB, free: 11 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.389e-05/0.7355, allocations: 12 kB / 0.9919 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.7355, allocations: 7.984 kB / 0.9919 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.7356, allocations: 7.938 kB / 0.9919 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.7356, allocations: 8 kB / 0.9919 GB, free: 10.96 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.sta.combiTimeTable.nextTimeEvent,sta.y,sta.combiTimeTable.nextTimeEvent,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0003246/0.736, allocations: 319.1 kB / 0.9922 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.736, allocations: 79.05 kB / 0.9923 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.7361, allocations: 78.41 kB / 0.9924 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.7362, allocations: 0 / 0.9924 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.7362, allocations: 4 kB / 0.9924 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.7362, allocations: 0 / 0.9924 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003991/0.7366, allocations: 389.4 kB / 0.9928 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.7366, allocations: 0 / 0.9928 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-05/0.7366, allocations: 11.95 kB / 0.9928 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.7367, allocations: 0 / 0.9928 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.7367, allocations: 0 / 0.9928 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7367, allocations: 0 / 0.9928 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7367, allocations: 7.984 kB / 0.9928 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.737, allocations: 196.2 kB / 0.993 GB, free: 9.816 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.7372, allocations: 140.2 kB / 0.9931 GB, free: 9.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.678e-05/0.7373, allocations: 7.953 kB / 0.9931 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.7374, allocations: 7.984 kB / 0.9931 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.7375, allocations: 15.92 kB / 0.9931 GB, free: 9.629 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.7375, allocations: 0 / 0.9931 GB, free: 9.629 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008964/0.7384, allocations: 0.6785 MB / 0.9938 GB, free: 8.957 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7384, allocations: 4 kB / 0.9938 GB, free: 8.953 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003033/0.7387, allocations: 60 kB / 0.9938 GB, free: 8.895 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,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.001691/0.7404, allocations: 1.046 MB / 0.9949 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00022/0.7406, allocations: 83.88 kB / 0.995 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7406, allocations: 0 / 0.995 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.7407, allocations: 35.98 kB / 0.995 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/0.7414, allocations: 164.5 kB / 0.9951 GB, free: 7.703 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.7468, allocations: 3.858 MB / 0.9989 GB, free: 3.77 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008706/0.7477, allocations: 0.9982 MB / 0.9999 GB, free: 2.746 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001712/0.7478, allocations: 46.97 kB / 0.9999 GB, free: 2.703 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.7481, allocations: 187.4 kB / 1 GB, free: 2.523 MB / 0.7481 GB Notification: Performance of SimCode: time 1.192e-06/0.7481, allocations: 0 / 1 GB, free: 2.523 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.7767, allocations: 12.27 MB / 1.012 GB, free: 6.566 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.777, allocations: 252.8 kB / 1.012 GB, free: 6.23 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.868, allocations: 0 / 1.012 GB, free: 6.23 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect_res.mat does not exist to compare? outputFormat=mat