Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",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.481/2.481, allocations: 390.5 MB / 398 MB, free: 11 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.001212/0.001212, allocations: 180.9 kB / 491.2 MB, free: 1.598 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.544/1.544, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.001148/0.001148, allocations: 111.4 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.115e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3758, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.456, allocations: 157.3 MB / 1.366 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/1.456, allocations: 79.91 kB / 1.366 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04381/1.5, allocations: 16.79 MB / 1.382 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.294e-06/1.5, allocations: 0 / 1.382 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001316/1.5, allocations: 19.47 kB / 1.383 GB, free: 30.4 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002207/1.502, allocations: 0.9414 MB / 1.383 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.502, allocations: 11.53 kB / 1.383 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004209/1.503, allocations: 92.97 kB / 1.384 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/1.504, allocations: 0.5792 MB / 1.384 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/1.504, allocations: 87.84 kB / 1.384 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/1.504, allocations: 34.02 kB / 1.384 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006815/1.505, allocations: 337.6 kB / 1.385 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/1.506, allocations: 0.5096 MB / 1.385 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/1.506, allocations: 3.844 kB / 1.385 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-05/1.506, allocations: 7.922 kB / 1.385 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/1.506, allocations: 15.53 kB / 1.385 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/1.509, allocations: 2.105 MB / 1.387 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007571/1.51, allocations: 432.8 kB / 1.388 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002336/1.51, allocations: 164.9 kB / 1.388 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.731e-05/1.51, allocations: 5.219 kB / 1.388 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004089/1.51, allocations: 232.4 kB / 1.388 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.775e-06/1.51, allocations: 1.094 kB / 1.388 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0006919/1.511, allocations: 381.6 kB / 1.388 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/1.511, allocations: 190.9 kB / 1.388 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005393/1.512, allocations: 477.4 kB / 1.389 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.324e-05/1.512, allocations: 37.62 kB / 1.389 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/1.512, allocations: 363.1 kB / 1.389 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/1.512, allocations: 148.7 kB / 1.389 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/1.512, allocations: 0 / 1.389 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001448/1.512, allocations: 394 kB / 1.39 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/1.513, allocations: 134.9 kB / 1.39 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/1.513, allocations: 265.1 kB / 1.39 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/1.513, allocations: 165.2 kB / 1.39 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.513, allocations: 3.984 kB / 1.39 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007599/1.514, allocations: 482.6 kB / 1.391 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003833/1.514, allocations: 0.9922 MB / 1.392 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.514, allocations: 3.844 kB / 1.392 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/1.514, allocations: 3.844 kB / 1.392 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/1.515, allocations: 123.7 kB / 1.392 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/1.515, allocations: 3.844 kB / 1.392 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/1.515, allocations: 66.27 kB / 1.392 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/1.515, allocations: 18.72 kB / 1.392 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/1.515, allocations: 3.844 kB / 1.392 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005808/1.516, allocations: 390.2 kB / 1.392 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/1.516, allocations: 0 / 1.392 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.846e-06/1.516, allocations: 11.7 kB / 1.392 GB, free: 24.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/1.517, allocations: 112.3 kB / 1.392 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/1.517, allocations: 11.62 kB / 1.392 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/1.517, allocations: 50.73 kB / 1.393 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/1.517, allocations: 22.09 kB / 1.393 GB, free: 24.78 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0001885/1.517, allocations: 120.5 kB / 1.393 GB, free: 24.66 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005495/1.518, allocations: 392.3 kB / 1.393 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.221e-05/1.518, allocations: 73.92 kB / 1.393 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/1.518, allocations: 72.33 kB / 1.393 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/1.518, allocations: 3.844 kB / 1.393 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.518, allocations: 0 / 1.393 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/1.518, allocations: 3.984 kB / 1.393 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005937/1.519, allocations: 0.5667 MB / 1.394 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/1.519, allocations: 3.969 kB / 1.394 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/1.519, allocations: 100.5 kB / 1.394 GB, free: 24.17 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/1.519, allocations: 3.938 kB / 1.394 GB, free: 24.17 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/1.519, allocations: 11.78 kB / 1.394 GB, free: 24.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/1.519, allocations: 0 / 1.394 GB, free: 24.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.519, allocations: 4.062 kB / 1.394 GB, free: 24.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/1.52, allocations: 0.6207 MB / 1.394 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/1.52, allocations: 197.7 kB / 1.395 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-05/1.52, allocations: 3.75 kB / 1.395 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/1.521, allocations: 65.27 kB / 1.395 GB, free: 23.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.364e-05/1.521, allocations: 30.27 kB / 1.395 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/1.521, allocations: 22.62 kB / 1.395 GB, free: 23.81 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004672/1.522, allocations: 361.5 kB / 1.395 GB, free: 23.69 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.1e-07/1.522, allocations: 0 / 1.395 GB, free: 23.69 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007111/1.522, allocations: 219.1 kB / 1.395 GB, free: 23.64 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.00121/1.524, allocations: 1.174 MB / 1.396 GB, free: 22.96 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009951/1.525, allocations: 0.7039 MB / 1.397 GB, free: 22.79 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.525, allocations: 0 / 1.397 GB, free: 22.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002324/1.525, allocations: 179.3 kB / 1.397 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008834/1.526, allocations: 160.4 kB / 1.397 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/1.528, allocations: 0.9653 MB / 1.398 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/1.528, allocations: 0.933 MB / 1.399 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006463/1.529, allocations: 136.9 kB / 1.399 GB, free: 21.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/1.529, allocations: 263.8 kB / 1.4 GB, free: 21.35 MB / 0.8386 GB Notification: Performance of SimCode: time 8.01e-07/1.529, allocations: 0 / 1.4 GB, free: 21.35 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04151/1.571, allocations: 13.64 MB / 1.413 GB, free: 10.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/1.571, allocations: 141.2 kB / 1.413 GB, free: 10.06 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/4.149, allocations: 0 / 1.413 GB, free: 10.06 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat