Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",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.256/2.256, 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.001035/0.001035, allocations: 176.8 kB / 487.4 MB, free: 5.043 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.529/1.529, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 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.0009531/0.0009527, allocations: 95.02 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.011e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3112, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.329, allocations: 156.5 MB / 1.359 GB, free: 18.03 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/1.329, allocations: 71.64 kB / 1.359 GB, free: 18.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06821/1.398, allocations: 16.79 MB / 1.375 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.383e-06/1.398, allocations: 0 / 1.375 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.358e-05/1.398, allocations: 19.38 kB / 1.375 GB, free: 32.14 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.001542/1.399, allocations: 0.9451 MB / 1.376 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.399, allocations: 7.719 kB / 1.376 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/1.4, allocations: 97 kB / 1.376 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009064/1.4, allocations: 0.5858 MB / 1.377 GB, free: 31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/1.401, allocations: 79.72 kB / 1.377 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-05/1.401, allocations: 34.95 kB / 1.377 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000561/1.401, allocations: 339.5 kB / 1.377 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000734/1.402, allocations: 0.5048 MB / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/1.402, allocations: 7.891 kB / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/1.402, allocations: 3.984 kB / 1.378 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/1.402, allocations: 19.38 kB / 1.378 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/1.405, allocations: 2.102 MB / 1.38 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006814/1.406, allocations: 429.9 kB / 1.38 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/1.406, allocations: 159.8 kB / 1.381 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/1.406, allocations: 7.719 kB / 1.381 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/1.406, allocations: 239.4 kB / 1.381 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/1.406, allocations: 0 / 1.381 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0005941/1.407, allocations: 392.2 kB / 1.381 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/1.407, allocations: 187.6 kB / 1.381 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000523/1.407, allocations: 474.6 kB / 1.382 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/1.407, allocations: 33.53 kB / 1.382 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/1.408, allocations: 365 kB / 1.382 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.063e-05/1.408, allocations: 146.2 kB / 1.382 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/1.408, allocations: 1.094 kB / 1.382 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002168/1.408, allocations: 388.7 kB / 1.383 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/1.408, allocations: 141.8 kB / 1.383 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/1.409, allocations: 259.8 kB / 1.383 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/1.409, allocations: 163 kB / 1.383 GB, free: 27.85 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.409, allocations: 7.953 kB / 1.383 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006404/1.409, allocations: 481 kB / 1.384 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004092/1.41, allocations: 0.9857 MB / 1.385 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.41, allocations: 3.844 kB / 1.385 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/1.41, allocations: 11.66 kB / 1.385 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/1.41, allocations: 123.8 kB / 1.385 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/1.41, allocations: 7.719 kB / 1.385 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/1.411, allocations: 74.02 kB / 1.385 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/1.411, allocations: 22.12 kB / 1.385 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.342e-06/1.411, allocations: 3.906 kB / 1.385 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005303/1.411, allocations: 375.7 kB / 1.385 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/1.411, allocations: 3.844 kB / 1.385 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-06/1.412, allocations: 12 kB / 1.385 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/1.412, allocations: 116.3 kB / 1.385 GB, free: 26.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/1.412, allocations: 3.812 kB / 1.385 GB, free: 26.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/1.412, allocations: 58.33 kB / 1.385 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/1.412, allocations: 18.69 kB / 1.385 GB, free: 26.5 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.0001494/1.413, allocations: 124.8 kB / 1.386 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005022/1.413, allocations: 389.4 kB / 1.386 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/1.413, allocations: 74.02 kB / 1.386 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/1.413, allocations: 65.89 kB / 1.386 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/1.413, allocations: 3.844 kB / 1.386 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.413, allocations: 7.828 kB / 1.386 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/1.413, allocations: 7.984 kB / 1.386 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005091/1.414, allocations: 0.5674 MB / 1.387 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.414, allocations: 0 / 1.387 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/1.414, allocations: 96.16 kB / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/1.414, allocations: 3.969 kB / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/1.414, allocations: 3.984 kB / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/1.414, allocations: 7.766 kB / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.414, allocations: 4 kB / 1.387 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007669/1.415, allocations: 0.6192 MB / 1.387 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/1.415, allocations: 197.5 kB / 1.388 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.817e-05/1.415, allocations: 192 / 1.388 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/1.416, allocations: 61.91 kB / 1.388 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/1.416, allocations: 41.03 kB / 1.388 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/1.416, allocations: 14.45 kB / 1.388 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000375/1.416, allocations: 364.3 kB / 1.388 GB, free: 25.42 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.416, allocations: 0 / 1.388 GB, free: 25.42 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006148/1.417, allocations: 219.9 kB / 1.388 GB, free: 25.38 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.001114/1.418, allocations: 1.181 MB / 1.389 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008387/1.419, allocations: 0.701 MB / 1.39 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.419, allocations: 4.188 kB / 1.39 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/1.419, allocations: 177.4 kB / 1.39 GB, free: 24.51 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008171/1.42, allocations: 165.6 kB / 1.39 GB, free: 24.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/1.422, allocations: 0.9604 MB / 1.391 GB, free: 24 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/1.422, allocations: 0.9395 MB / 1.392 GB, free: 23.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000533/1.423, allocations: 129.5 kB / 1.392 GB, free: 23.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/1.423, allocations: 260.3 kB / 1.393 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.423, allocations: 4 kB / 1.393 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/1.458, allocations: 13.63 MB / 1.406 GB, free: 16.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/1.459, allocations: 135.8 kB / 1.406 GB, free: 16.51 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.932, allocations: 0 / 1.406 GB, free: 16.51 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat