Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.377/2.377, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.0009867/0.0009868, allocations: 188.8 kB / 487.4 MB, free: 5.062 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.613/1.613, allocations: 221.5 MB / 0.7824 GB, free: 1 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008272/0.0008272, allocations: 91.8 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.7e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3194, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.422, allocations: 152.2 MB / 1.355 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.423, allocations: 65.2 kB / 1.355 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04307/1.466, allocations: 16.68 MB / 1.371 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.833e-06/1.466, allocations: 0 / 1.371 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.236e-05/1.466, allocations: 15.44 kB / 1.371 GB, free: 32.98 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.001692/1.468, allocations: 1.097 MB / 1.372 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/1.468, allocations: 11.62 kB / 1.372 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/1.468, allocations: 106.8 kB / 1.372 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009035/1.469, allocations: 0.5725 MB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/1.469, allocations: 26.22 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/1.469, allocations: 61.88 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007319/1.47, allocations: 388.9 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009106/1.471, allocations: 0.53 MB / 1.374 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/1.471, allocations: 0 / 1.374 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.583e-05/1.471, allocations: 3.984 kB / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/1.471, allocations: 19.22 kB / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00333/1.474, allocations: 2.113 MB / 1.376 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007509/1.475, allocations: 452.6 kB / 1.376 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/1.475, allocations: 240 kB / 1.377 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/1.475, allocations: 12.25 kB / 1.377 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005177/1.476, allocations: 322.2 kB / 1.377 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 2.535e-06/1.476, allocations: 0 / 1.377 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0008554/1.477, allocations: 495.1 kB / 1.377 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/1.477, allocations: 114.7 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/1.477, allocations: 405.8 kB / 1.378 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.757e-05/1.477, allocations: 44.22 kB / 1.378 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/1.478, allocations: 345.8 kB / 1.378 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/1.478, allocations: 189.8 kB / 1.378 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/1.478, allocations: 10.69 kB / 1.378 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002173/1.478, allocations: 376.2 kB / 1.379 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/1.479, allocations: 281.8 kB / 1.379 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/1.479, allocations: 438.5 kB / 1.379 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008941/1.48, allocations: 330.2 kB / 1.38 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.48, allocations: 7.938 kB / 1.38 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001606/1.482, allocations: 0.8583 MB / 1.381 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006108/1.482, allocations: 1.214 MB / 1.382 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/1.482, allocations: 3.969 kB / 1.382 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/1.482, allocations: 3.906 kB / 1.382 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004342/1.483, allocations: 112.5 kB / 1.382 GB, free: 27.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/1.483, allocations: 7.562 kB / 1.382 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/1.484, allocations: 252.5 kB / 1.382 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/1.484, allocations: 49.88 kB / 1.382 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/1.484, allocations: 7.828 kB / 1.382 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001453/1.485, allocations: 0.7955 MB / 1.383 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/1.485, allocations: 320 / 1.383 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.564e-06/1.485, allocations: 11.53 kB / 1.383 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003404/1.486, allocations: 94.19 kB / 1.383 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/1.486, allocations: 7.594 kB / 1.383 GB, free: 27.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009292/1.487, allocations: 232.6 kB / 1.383 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-05/1.487, allocations: 46.19 kB / 1.383 GB, free: 27.32 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.0002606/1.487, allocations: 137.7 kB / 1.383 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006762/1.488, allocations: 480.3 kB / 1.384 GB, free: 27.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.631e-05/1.488, allocations: 58.44 kB / 1.384 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/1.489, allocations: 0.4969 MB / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/1.489, allocations: 3.875 kB / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/1.489, allocations: 3.969 kB / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/1.489, allocations: 3.984 kB / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/1.49, allocations: 1.236 MB / 1.386 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/1.49, allocations: 12.09 kB / 1.386 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/1.491, allocations: 95.97 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/1.491, allocations: 3.875 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/1.491, allocations: 10.47 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/1.491, allocations: 3.984 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.491, allocations: 3.969 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/1.492, allocations: 0.8671 MB / 1.387 GB, free: 26.06 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/1.492, allocations: 141.6 kB / 1.387 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/1.492, allocations: 3.844 kB / 1.387 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/1.492, allocations: 49.78 kB / 1.387 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/1.492, allocations: 57.72 kB / 1.387 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/1.492, allocations: 21.62 kB / 1.387 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003381/1.493, allocations: 301 kB / 1.387 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.493, allocations: 0 / 1.387 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001077/1.494, allocations: 325.4 kB / 1.388 GB, free: 25.71 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.001461/1.495, allocations: 1.661 MB / 1.389 GB, free: 24.66 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001828/1.497, allocations: 1.69 MB / 1.391 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.497, allocations: 9.094 kB / 1.391 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002951/1.497, allocations: 258.9 kB / 1.391 GB, free: 23.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000753/1.498, allocations: 121.4 kB / 1.391 GB, free: 23.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/1.5, allocations: 1.002 MB / 1.392 GB, free: 23.4 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/1.501, allocations: 0.9449 MB / 1.393 GB, free: 22.59 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004218/1.501, allocations: 102.4 kB / 1.393 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/1.501, allocations: 270 kB / 1.393 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.502, allocations: 0 / 1.393 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04185/1.543, allocations: 17.01 MB / 1.41 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/1.544, allocations: 147.7 kB / 1.41 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.875/4.419, allocations: 0 / 1.41 GB, free: 13.29 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat