Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.418/2.418, allocations: 390.5 MB / 398 MB, free: 10.93 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.001667/0.001667, allocations: 195.4 kB / 491.2 MB, free: 1.547 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.452/1.452, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.0009549/0.0009546, allocations: 90.69 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.243e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3043, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9272/1.232, allocations: 156 MB / 1.365 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.232, allocations: 78.5 kB / 1.365 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02874/1.261, allocations: 12.28 MB / 1.377 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.513e-06/1.261, allocations: 0 / 1.377 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.338e-05/1.261, allocations: 11.53 kB / 1.377 GB, free: 32.2 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001318/1.262, allocations: 0.8807 MB / 1.378 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/1.262, allocations: 7.688 kB / 1.378 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/1.262, allocations: 88.09 kB / 1.378 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006282/1.263, allocations: 0.5252 MB / 1.378 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/1.263, allocations: 19.19 kB / 1.378 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/1.263, allocations: 37.64 kB / 1.378 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006262/1.264, allocations: 397.4 kB / 1.379 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007401/1.264, allocations: 0.5155 MB / 1.379 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/1.264, allocations: 3.5 kB / 1.379 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/1.264, allocations: 3.188 kB / 1.379 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/1.264, allocations: 19.16 kB / 1.379 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/1.267, allocations: 1.985 MB / 1.381 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/1.268, allocations: 403.4 kB / 1.382 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/1.268, allocations: 205.3 kB / 1.382 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/1.268, allocations: 11.95 kB / 1.382 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/1.268, allocations: 244.9 kB / 1.382 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 2.925e-06/1.268, allocations: 0 / 1.382 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0005664/1.269, allocations: 395.8 kB / 1.382 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/1.269, allocations: 162.4 kB / 1.383 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/1.269, allocations: 350.8 kB / 1.383 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/1.269, allocations: 29.2 kB / 1.383 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/1.269, allocations: 321.1 kB / 1.383 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.445e-05/1.27, allocations: 161.9 kB / 1.383 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/1.27, allocations: 0 / 1.383 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001252/1.27, allocations: 364.3 kB / 1.384 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/1.27, allocations: 144.5 kB / 1.384 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/1.27, allocations: 247.9 kB / 1.384 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/1.27, allocations: 173.2 kB / 1.384 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.27, allocations: 0 / 1.384 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006018/1.271, allocations: 473.7 kB / 1.385 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/1.271, allocations: 33.56 kB / 1.385 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/1.271, allocations: 3.969 kB / 1.385 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/1.271, allocations: 3.875 kB / 1.385 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/1.272, allocations: 125.1 kB / 1.385 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/1.272, allocations: 3.812 kB / 1.385 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/1.272, allocations: 66.36 kB / 1.385 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/1.272, allocations: 18.91 kB / 1.385 GB, free: 28.75 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001189/1.272, allocations: 124.8 kB / 1.385 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004773/1.273, allocations: 397.6 kB / 1.385 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.853e-05/1.273, allocations: 58.27 kB / 1.385 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/1.273, allocations: 59.83 kB / 1.386 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/1.273, allocations: 3.844 kB / 1.386 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.273, allocations: 3.844 kB / 1.386 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/1.273, allocations: 3.984 kB / 1.386 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/1.274, allocations: 1.103 MB / 1.387 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.274, allocations: 7.938 kB / 1.387 GB, free: 28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/1.275, allocations: 108.6 kB / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/1.275, allocations: 3.984 kB / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/1.275, allocations: 7.031 kB / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/1.275, allocations: 4 kB / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.275, allocations: 0 / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007752/1.275, allocations: 0.7176 MB / 1.387 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/1.276, allocations: 174.7 kB / 1.388 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.334e-05/1.276, allocations: 3.812 kB / 1.388 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003485/1.276, allocations: 49.58 kB / 1.388 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.259e-05/1.276, allocations: 38.25 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/1.276, allocations: 14.56 kB / 1.388 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002314/1.276, allocations: 266 kB / 1.388 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.6e-07/1.276, allocations: 0 / 1.388 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004186/1.277, allocations: 139.3 kB / 1.388 GB, free: 27.46 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.001093/1.278, allocations: 1.271 MB / 1.389 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005115/1.278, allocations: 432.8 kB / 1.39 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.278, allocations: 0 / 1.39 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002278/1.279, allocations: 200.2 kB / 1.39 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/1.279, allocations: 116 kB / 1.39 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/1.282, allocations: 1.339 MB / 1.391 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/1.282, allocations: 0.9074 MB / 1.392 GB, free: 25.1 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002681/1.282, allocations: 66.91 kB / 1.392 GB, free: 25.06 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/1.283, allocations: 223.8 kB / 1.393 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.283, allocations: 4 kB / 1.393 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/1.313, allocations: 10.34 MB / 1.403 GB, free: 20.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/1.313, allocations: 148.3 kB / 1.403 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/3.656, allocations: 4 kB / 1.403 GB, free: 19.95 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat does not exist to compare? outputFormat=mat