Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",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.0008388/0.0008391, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.000872/0.000872, allocations: 172.7 kB / 15.95 MB, free: 208 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.5/1.5, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.73/2.73, allocations: 409.4 MB / 0.684 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.0003891, allocations: 8 kB / 0.8378 GB, free: 6.531 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9513/0.9518, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003808/0.9556, allocations: 2.549 MB / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.9574, allocations: 0.8421 MB / 0.9844 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/0.9577, allocations: 11.94 kB / 0.9845 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.958, allocations: 47.58 kB / 0.9845 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.9582, allocations: 75.34 kB / 0.9846 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.9587, allocations: 147.7 kB / 0.9847 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004615/0.9591, allocations: 431.3 kB / 0.9851 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003158/0.9595, allocations: 156.9 kB / 0.9853 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.9597, allocations: 123.2 kB / 0.9854 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.9599, allocations: 127.2 kB / 0.9855 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.9599, allocations: 12 kB / 0.9855 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.536e-05/0.9599, allocations: 12 kB / 0.9855 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.439e-05/0.96, allocations: 55.69 kB / 0.9856 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.419e-05/0.9601, allocations: 89.45 kB / 0.9857 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.9605, allocations: 381.3 kB / 0.986 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.9605, allocations: 4 kB / 0.986 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.675e-06/0.9605, allocations: 0 / 0.986 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.9605, allocations: 0 / 0.986 GB, free: 1.211 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001086/0.9616, allocations: 0.6582 MB / 0.9867 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.9617, allocations: 11.98 kB / 0.9867 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.9618, allocations: 62.53 kB / 0.9868 GB, free: 432 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.9618, allocations: 47.44 kB / 0.9868 GB, free: 384 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005917/0.9624, allocations: 371.4 kB / 0.9872 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.9625, allocations: 20.66 kB / 0.9872 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.9625, allocations: 36 kB / 0.9872 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005918/0.9631, allocations: 337.1 kB / 0.9875 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.9632, allocations: 7.906 kB / 0.9875 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.9632, allocations: 12 kB / 0.9875 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.9632, allocations: 12 kB / 0.9876 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.9637, allocations: 218.1 kB / 0.9878 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.9653, allocations: 1.194 MB / 0.9889 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.9659, allocations: 244.2 kB / 0.9892 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.9661, allocations: 113.2 kB / 0.9893 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.9662, allocations: 8.172 kB / 0.9893 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.9662, allocations: 30.75 kB / 0.9893 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 3.035e-06/0.9662, allocations: 3.938 kB / 0.9893 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22): time 0.000676/0.9669, allocations: 304.6 kB / 0.9896 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.967, allocations: 106.8 kB / 0.9897 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003553/0.9674, allocations: 329.7 kB / 0.99 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.9674, allocations: 33.7 kB / 0.9901 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.9676, allocations: 216.2 kB / 0.9903 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.669e-05/0.9677, allocations: 82.84 kB / 0.9903 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.9677, allocations: 4 kB / 0.9903 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.9679, allocations: 346.8 kB / 0.9907 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.968, allocations: 75.97 kB / 0.9907 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.9683, allocations: 147.6 kB / 0.9909 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.9685, allocations: 93.56 kB / 0.991 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.722e-05/0.9685, allocations: 7.953 kB / 0.991 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000492/0.969, allocations: 278.9 kB / 0.9912 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.969, allocations: 7.938 kB / 0.9913 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.969, allocations: 7.984 kB / 0.9913 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.9691, allocations: 4 kB / 0.9913 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.9693, allocations: 47.98 kB / 0.9913 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.9693, allocations: 11.92 kB / 0.9913 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.9695, allocations: 36.02 kB / 0.9914 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.9695, allocations: 8 kB / 0.9914 GB, free: 11.45 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: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001871/0.9697, allocations: 157.8 kB / 0.9915 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.9698, allocations: 39.48 kB / 0.9916 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.397e-05/0.9699, allocations: 43.36 kB / 0.9916 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.9699, allocations: 4 kB / 0.9916 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.9699, allocations: 0 / 0.9916 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.9699, allocations: 3.984 kB / 0.9916 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.9704, allocations: 397.2 kB / 0.992 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.9704, allocations: 0 / 0.992 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.9706, allocations: 43.94 kB / 0.992 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.9706, allocations: 4 kB / 0.992 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.9707, allocations: 3.984 kB / 0.992 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.9707, allocations: 0 / 0.992 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.9707, allocations: 3.938 kB / 0.992 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007031/0.9714, allocations: 429.8 kB / 0.9924 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.9715, allocations: 128.6 kB / 0.9926 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.365e-05/0.9716, allocations: 15.88 kB / 0.9926 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.9718, allocations: 24.05 kB / 0.9926 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.9718, allocations: 23.97 kB / 0.9926 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.9718, allocations: 4 kB / 0.9926 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002501/0.9721, allocations: 235.2 kB / 0.9929 GB, free: 9.836 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/0.9721, allocations: 0 / 0.9929 GB, free: 9.836 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003257/0.9724, allocations: 63.84 kB / 0.9929 GB, free: 9.773 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.0009809/0.9734, allocations: 0.9662 MB / 0.9939 GB, free: 8.777 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004508/0.9739, allocations: 205.1 kB / 0.9941 GB, free: 8.578 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9739, allocations: 4 kB / 0.9941 GB, free: 8.574 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.9741, allocations: 95.91 kB / 0.9942 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.9747, allocations: 89.58 kB / 0.9942 GB, free: 8.398 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.9782, allocations: 2.037 MB / 0.9962 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.9786, allocations: 0.7914 MB / 0.997 GB, free: 5.477 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001728/0.9788, allocations: 34.97 kB / 0.997 GB, free: 5.441 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.979, allocations: 123.4 kB / 0.9972 GB, free: 5.32 MB / 0.7481 GB Notification: Performance of SimCode: time 5.71e-07/0.979, allocations: 0 / 0.9972 GB, free: 5.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.9983, allocations: 6.21 MB / 1.003 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.9986, allocations: 207.1 kB / 1.003 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/3.017, allocations: 0 / 1.003 GB, free: 15.05 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat