Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly",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.0009985/0.0009984, allocations: 86.72 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.001259/0.00126, 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.41/1.41, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.4 MB / 0.6655 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003207, allocations: 16 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6071/0.6074, allocations: 142.3 MB / 0.9539 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly): time 0.1784/0.7858, allocations: 176.3 MB / 1.126 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.007779/0.7936, allocations: 4.885 MB / 1.131 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008459/0.7945, allocations: 43.62 kB / 1.131 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.7959, allocations: 0.6258 MB / 1.131 GB, free: 9.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004218/0.8001, allocations: 1.885 MB / 1.133 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.8022, allocations: 0.9072 MB / 1.134 GB, free: 6.926 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003187/0.8054, allocations: 3.015 MB / 1.137 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.8066, allocations: 0.7296 MB / 1.138 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001612/0.8082, allocations: 0.9843 MB / 1.139 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.8093, allocations: 0.9223 MB / 1.14 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.8094, allocations: 44 kB / 1.14 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00219/0.8116, allocations: 0.9314 MB / 1.141 GB, free: 272 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003923/0.812, allocations: 402.7 kB / 1.141 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.8123, allocations: 257 kB / 1.141 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001803/0.8141, allocations: 1.348 MB / 1.143 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.8141, allocations: 4 kB / 1.143 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.575e-06/0.8142, allocations: 0 / 1.143 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.625e-05/0.8142, allocations: 0 / 1.143 GB, free: 14.26 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.00426/0.8184, allocations: 1.693 MB / 1.144 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.8185, allocations: 8.031 kB / 1.144 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.8187, allocations: 139.4 kB / 1.144 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00353/0.8222, allocations: 0.7045 MB / 1.145 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.8235, allocations: 0.8328 MB / 1.146 GB, free: 10.76 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/0.8236, allocations: 73.98 kB / 1.146 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.8237, allocations: 88 kB / 1.146 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.8266, allocations: 1.481 MB / 1.148 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.8266, allocations: 0 / 1.148 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.65e-05/0.8267, allocations: 35.98 kB / 1.148 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.655e-05/0.8268, allocations: 53.98 kB / 1.148 GB, free: 8.961 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003766/0.8306, allocations: 1.534 MB / 1.149 GB, free: 7.426 MB / 0.9044 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006795/0.8374, allocations: 5.495 MB / 1.154 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00333/0.8407, allocations: 1.319 MB / 1.156 GB, free: 324 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.8423, allocations: 0.6662 MB / 1.156 GB, free: 15.64 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008201/0.8432, allocations: 0.5929 MB / 1.157 GB, free: 14.94 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001669/0.8448, allocations: 0.7263 MB / 1.158 GB, free: 14.2 MB / 0.92 GB Notification: Performance of pre-optimization done (n=80): time 2.595e-06/0.8448, allocations: 0 / 1.158 GB, free: 14.2 MB / 0.92 GB Notification: Performance of matching and sorting (n=80): time 0.005008/0.8499, allocations: 1.898 MB / 1.16 GB, free: 12.3 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.8499, allocations: 72 kB / 1.16 GB, free: 12.21 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.8513, allocations: 1.223 MB / 1.161 GB, free: 10.98 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.63e-05/0.8514, allocations: 45.7 kB / 1.161 GB, free: 10.93 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004244/0.8518, allocations: 0.5791 MB / 1.161 GB, free: 10.35 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.852, allocations: 276.1 kB / 1.162 GB, free: 10.07 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.15e-05/0.8521, allocations: 16 kB / 1.162 GB, free: 10.06 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.8522, allocations: 341.9 kB / 1.162 GB, free: 9.719 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.8537, allocations: 0.5523 MB / 1.163 GB, free: 9.168 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.8554, allocations: 0.8335 MB / 1.163 GB, free: 8.223 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.8569, allocations: 0.5848 MB / 1.164 GB, free: 7.637 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.8569, allocations: 4 kB / 1.164 GB, free: 7.633 MB / 0.92 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003502/0.8604, allocations: 1.511 MB / 1.165 GB, free: 6.113 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.8605, allocations: 19.95 kB / 1.165 GB, free: 6.094 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.8605, allocations: 8 kB / 1.165 GB, free: 6.086 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.8605, allocations: 12 kB / 1.165 GB, free: 6.074 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.8619, allocations: 299.5 kB / 1.166 GB, free: 5.781 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.8619, allocations: 19.92 kB / 1.166 GB, free: 5.762 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.8632, allocations: 230.6 kB / 1.166 GB, free: 5.535 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.8633, allocations: 51.97 kB / 1.166 GB, free: 5.484 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * 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.0005582/0.8639, allocations: 331.7 kB / 1.166 GB, free: 5.152 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.8641, allocations: 138.3 kB / 1.166 GB, free: 5.016 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/0.8677, allocations: 1.424 MB / 1.168 GB, free: 3.582 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.8677, allocations: 11.98 kB / 1.168 GB, free: 3.57 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.8677, allocations: 0 / 1.168 GB, free: 3.57 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.8677, allocations: 3.984 kB / 1.168 GB, free: 3.566 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005342/0.8731, allocations: 2.827 MB / 1.171 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.8731, allocations: 8.062 kB / 1.171 GB, free: 0.625 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.8743, allocations: 227.7 kB / 1.171 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.8743, allocations: 8 kB / 1.171 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.673e-05/0.8744, allocations: 35.97 kB / 1.171 GB, free: 368 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.607e-06/0.8744, allocations: 7.938 kB / 1.171 GB, free: 360 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.8744, allocations: 11.95 kB / 1.171 GB, free: 348 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005014/0.8794, allocations: 2.271 MB / 1.173 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004617/0.8799, allocations: 303.2 kB / 1.173 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.8801, allocations: 24 kB / 1.173 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.8811, allocations: 135.8 kB / 1.174 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.8813, allocations: 68.38 kB / 1.174 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.369e-05/0.8813, allocations: 35.97 kB / 1.174 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009768/0.8823, allocations: 0.8444 MB / 1.175 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8823, allocations: 0 / 1.175 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009646/0.8833, allocations: 315.6 kB / 1.175 GB, free: 12.27 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 3 (heaHigPow.Xi,cooLimPow.Xi,heaCooUnl.Xi) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.006365/0.8897, allocations: 3.264 MB / 1.178 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003366/0.8931, allocations: 1.294 MB / 1.179 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8931, allocations: 0 / 1.179 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.8947, allocations: 0.656 MB / 1.18 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/0.8972, allocations: 0.5711 MB / 1.18 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.9118, allocations: 8.65 MB / 1.189 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.9125, allocations: 1.167 MB / 1.19 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0014/0.914, allocations: 349.9 kB / 1.19 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007244/0.9147, allocations: 499.2 kB / 1.191 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of SimCode: time 4.81e-07/0.9147, allocations: 0 / 1.191 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04941/0.9641, allocations: 32.17 MB / 1.222 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.9643, allocations: 248.7 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.508, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly_res.mat does not exist to compare? outputFormat=mat