Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008884, allocations: 86.09 kB / 15.06 MB, free: 1.09 MB / 14.72 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: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.846/2.846, allocations: 409.4 MB / 0.684 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004001, allocations: 15.94 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9232/0.9237, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003714/0.9274, allocations: 2.689 MB / 0.9838 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001801/0.9293, allocations: 0.8886 MB / 0.9846 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003036/0.9296, allocations: 11.94 kB / 0.9846 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.9298, allocations: 55.5 kB / 0.9847 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.93, allocations: 71.42 kB / 0.9848 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.9305, allocations: 162.5 kB / 0.9849 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004979/0.931, allocations: 495.7 kB / 0.9854 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.9314, allocations: 187.7 kB / 0.9856 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.9316, allocations: 143.2 kB / 0.9857 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.9318, allocations: 143.1 kB / 0.9858 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.9318, allocations: 12 kB / 0.9859 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.618e-05/0.9319, allocations: 12 kB / 0.9859 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.9319, allocations: 59.64 kB / 0.9859 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.068e-05/0.932, allocations: 101.5 kB / 0.986 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.9324, allocations: 445.1 kB / 0.9864 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.9324, allocations: 0 / 0.9864 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.875e-06/0.9325, allocations: 0 / 0.9864 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.9325, allocations: 4 kB / 0.9864 GB, free: 0.7891 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001222/0.9337, allocations: 0.6958 MB / 0.9871 GB, free: 44 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.9337, allocations: 8.031 kB / 0.9871 GB, free: 36 kB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.9339, allocations: 74.52 kB / 0.9872 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.934, allocations: 55.34 kB / 0.9873 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.9346, allocations: 387.8 kB / 0.9876 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.9346, allocations: 29 kB / 0.9877 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.052e-05/0.9347, allocations: 51.84 kB / 0.9877 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006613/0.9353, allocations: 397.6 kB / 0.9881 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.9354, allocations: 3.984 kB / 0.9881 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.9354, allocations: 16 kB / 0.9881 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.9354, allocations: 8 kB / 0.9881 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.936, allocations: 267.8 kB / 0.9884 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.9377, allocations: 1.328 MB / 0.9897 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006548/0.9384, allocations: 308 kB / 0.99 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.9387, allocations: 140.8 kB / 0.9901 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.9387, allocations: 4.547 kB / 0.9901 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.9391, allocations: 177.5 kB / 0.9903 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.394e-06/0.9391, allocations: 0 / 0.9903 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.0007656/0.9399, allocations: 395.3 kB / 0.9906 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.94, allocations: 89.11 kB / 0.9907 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.9403, allocations: 349.5 kB / 0.9911 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.9404, allocations: 33.7 kB / 0.9911 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.9406, allocations: 240.3 kB / 0.9913 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.423e-05/0.9406, allocations: 98.55 kB / 0.9914 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.758e-05/0.9407, allocations: 12 kB / 0.9914 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.9408, allocations: 346.8 kB / 0.9918 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.941, allocations: 104.7 kB / 0.9919 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.9413, allocations: 164.6 kB / 0.992 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.9415, allocations: 113.6 kB / 0.9921 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9416, allocations: 0 / 0.9921 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005861/0.9422, allocations: 351 kB / 0.9925 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.9422, allocations: 9.562 kB / 0.9925 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.9422, allocations: 0 / 0.9925 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.9422, allocations: 7.984 kB / 0.9925 GB, free: 10.31 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.9425, allocations: 63.91 kB / 0.9925 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.9425, allocations: 11.89 kB / 0.9925 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.9427, allocations: 43.77 kB / 0.9926 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.9428, allocations: 16 kB / 0.9926 GB, free: 10.18 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.000206/0.943, allocations: 169.8 kB / 0.9928 GB, free: 10 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.091e-05/0.943, allocations: 39.53 kB / 0.9928 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.9431, allocations: 48.23 kB / 0.9928 GB, free: 9.906 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.9431, allocations: 4 kB / 0.9929 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.9432, allocations: 0 / 0.9929 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.9432, allocations: 3.953 kB / 0.9929 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.9443, allocations: 0.8065 MB / 0.9936 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.9443, allocations: 0 / 0.9936 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.9445, allocations: 51.91 kB / 0.9937 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.9446, allocations: 4 kB / 0.9937 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.9446, allocations: 4 kB / 0.9937 GB, free: 8.977 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.9446, allocations: 11.95 kB / 0.9937 GB, free: 8.965 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9446, allocations: 0 / 0.9937 GB, free: 8.965 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007943/0.9454, allocations: 0.511 MB / 0.9942 GB, free: 8.438 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.9455, allocations: 136.6 kB / 0.9943 GB, free: 8.285 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.9456, allocations: 12.06 kB / 0.9944 GB, free: 8.273 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.9458, allocations: 23.97 kB / 0.9944 GB, free: 8.25 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.9459, allocations: 27.92 kB / 0.9944 GB, free: 8.223 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.9459, allocations: 15.92 kB / 0.9944 GB, free: 8.207 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002346/0.9461, allocations: 239.2 kB / 0.9946 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9461, allocations: 0 / 0.9946 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003466/0.9465, allocations: 83.69 kB / 0.9947 GB, free: 7.898 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00106/0.9476, allocations: 1.079 MB / 0.9958 GB, free: 6.793 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005135/0.9481, allocations: 263.7 kB / 0.996 GB, free: 6.535 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9481, allocations: 0 / 0.996 GB, free: 6.535 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.9484, allocations: 139.8 kB / 0.9962 GB, free: 6.398 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.9489, allocations: 78.59 kB / 0.9962 GB, free: 6.32 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/0.9527, allocations: 2.285 MB / 0.9985 GB, free: 3.973 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.9531, allocations: 0.8191 MB / 0.9993 GB, free: 3.129 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002224/0.9534, allocations: 47.25 kB / 0.9993 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.9536, allocations: 143.4 kB / 0.9995 GB, free: 2.941 MB / 0.7481 GB Notification: Performance of SimCode: time 7.62e-07/0.9536, allocations: 0 / 0.9995 GB, free: 2.941 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.9723, allocations: 6.983 MB / 1.006 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.9726, allocations: 209.6 kB / 1.006 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/3.053, allocations: 0 / 1.006 GB, free: 11.93 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat does not exist to compare? outputFormat=mat