Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.38/2.38, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 183.2 kB / 491.2 MB, free: 1.586 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009029/0.0009029, allocations: 91.89 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.277e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3341, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.085/1.42, allocations: 153 MB / 1.362 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/1.42, allocations: 67.41 kB / 1.362 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04506/1.465, allocations: 16.68 MB / 1.378 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.963e-06/1.465, allocations: 3.938 kB / 1.378 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.682e-05/1.465, allocations: 15.56 kB / 1.378 GB, free: 31.6 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002779/1.468, allocations: 1.097 MB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/1.468, allocations: 7.812 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006521/1.469, allocations: 108.8 kB / 1.379 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/1.47, allocations: 0.573 MB / 1.38 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/1.47, allocations: 27.05 kB / 1.38 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003167/1.471, allocations: 60.22 kB / 1.38 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000944/1.472, allocations: 389.1 kB / 1.38 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/1.473, allocations: 0.5293 MB / 1.381 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/1.473, allocations: 3.906 kB / 1.381 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/1.473, allocations: 0 / 1.381 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/1.473, allocations: 19.39 kB / 1.381 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004279/1.477, allocations: 2.114 MB / 1.383 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008118/1.478, allocations: 454.9 kB / 1.383 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000331/1.478, allocations: 238.4 kB / 1.384 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.518e-05/1.478, allocations: 12.34 kB / 1.384 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/1.479, allocations: 332.8 kB / 1.384 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 3.316e-06/1.479, allocations: 0 / 1.384 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0009267/1.48, allocations: 488.6 kB / 1.384 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/1.48, allocations: 115.1 kB / 1.385 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006264/1.481, allocations: 410 kB / 1.385 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001857/1.481, allocations: 40.39 kB / 1.385 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/1.481, allocations: 339.1 kB / 1.385 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/1.481, allocations: 200.4 kB / 1.386 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.422e-05/1.481, allocations: 11.22 kB / 1.386 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002928/1.482, allocations: 372.1 kB / 1.386 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/1.482, allocations: 280.4 kB / 1.386 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006009/1.483, allocations: 426.8 kB / 1.387 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/1.484, allocations: 340.5 kB / 1.387 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/1.484, allocations: 0 / 1.387 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002485/1.487, allocations: 0.8606 MB / 1.388 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006815/1.487, allocations: 1.208 MB / 1.389 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/1.487, allocations: 3.844 kB / 1.389 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-05/1.487, allocations: 7.688 kB / 1.389 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/1.488, allocations: 110.7 kB / 1.389 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/1.488, allocations: 11.75 kB / 1.389 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/1.489, allocations: 256.8 kB / 1.389 GB, free: 25.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000209/1.489, allocations: 45.75 kB / 1.389 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/1.49, allocations: 3.906 kB / 1.389 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001775/1.491, allocations: 0.7964 MB / 1.39 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/1.491, allocations: 4.031 kB / 1.39 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.491, allocations: 7.688 kB / 1.39 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/1.492, allocations: 98.39 kB / 1.39 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/1.492, allocations: 11.66 kB / 1.39 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/1.493, allocations: 224.9 kB / 1.39 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/1.493, allocations: 45.69 kB / 1.39 GB, free: 25.74 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0003749/1.493, allocations: 141.7 kB / 1.391 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009616/1.494, allocations: 478.7 kB / 1.391 GB, free: 25.51 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/1.495, allocations: 61.66 kB / 1.391 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008603/1.495, allocations: 0.4956 MB / 1.392 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/1.495, allocations: 3.844 kB / 1.392 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.495, allocations: 0 / 1.392 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/1.495, allocations: 7.781 kB / 1.392 GB, free: 25.35 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/1.498, allocations: 1.242 MB / 1.393 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.498, allocations: 7.875 kB / 1.393 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/1.498, allocations: 95.17 kB / 1.393 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/1.498, allocations: 3.844 kB / 1.393 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/1.498, allocations: 11.42 kB / 1.393 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/1.498, allocations: 7.656 kB / 1.393 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.498, allocations: 0 / 1.393 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/1.499, allocations: 0.8679 MB / 1.394 GB, free: 24.47 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/1.499, allocations: 139 kB / 1.394 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.109e-05/1.499, allocations: 15.16 kB / 1.394 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/1.5, allocations: 38.88 kB / 1.394 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/1.5, allocations: 57.53 kB / 1.394 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/1.5, allocations: 22.92 kB / 1.394 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003662/1.5, allocations: 306.8 kB / 1.394 GB, free: 24.18 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.5, allocations: 4 kB / 1.394 GB, free: 24.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001099/1.501, allocations: 315.4 kB / 1.395 GB, free: 24.12 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001514/1.503, allocations: 1.663 MB / 1.396 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002117/1.505, allocations: 1.693 MB / 1.398 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.505, allocations: 3.969 kB / 1.398 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003401/1.505, allocations: 260.8 kB / 1.398 GB, free: 22.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008005/1.506, allocations: 127.8 kB / 1.398 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/1.508, allocations: 1.004 MB / 1.399 GB, free: 21.81 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005843/1.509, allocations: 0.9486 MB / 1.4 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005159/1.51, allocations: 94.25 kB / 1.4 GB, free: 20.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/1.51, allocations: 270.4 kB / 1.401 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of SimCode: time 4.51e-07/1.51, allocations: 7.844 kB / 1.401 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04459/1.554, allocations: 17 MB / 1.417 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/1.555, allocations: 149.8 kB / 1.417 GB, free: 6.094 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.743/4.298, allocations: 4.031 kB / 1.417 GB, free: 6.09 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat