Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",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.001106/0.001106, allocations: 103.2 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.001242/0.001242, allocations: 173.3 kB / 15.95 MB, free: 212 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.93/1.93, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.127/4.127, allocations: 409.2 MB / 0.6838 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007566/0.0007567, allocations: 11.98 kB / 0.8375 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.49/1.49, allocations: 146.8 MB / 0.9809 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains): time 0.004847/1.495, allocations: 2.207 MB / 0.983 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00556/1.501, allocations: 1.958 MB / 0.9849 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/1.502, allocations: 15.94 kB / 0.985 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002631/1.502, allocations: 51.38 kB / 0.985 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00081/1.503, allocations: 143.5 kB / 0.9851 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00305/1.506, allocations: 0.6129 MB / 0.9857 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002053/1.508, allocations: 0.6655 MB / 0.9864 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009652/1.509, allocations: 347.5 kB / 0.9867 GB, free: 252 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007716/1.51, allocations: 330.7 kB / 0.987 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005756/1.511, allocations: 318.3 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000148/1.511, allocations: 40 kB / 0.9874 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/1.511, allocations: 55.97 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001601/1.511, allocations: 107.5 kB / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002823/1.512, allocations: 165.3 kB / 0.9877 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001546/1.513, allocations: 1.042 MB / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.513, allocations: 0 / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.757e-06/1.513, allocations: 0 / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.011e-05/1.513, allocations: 0 / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003361/1.517, allocations: 1.176 MB / 0.9899 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 9.689e-05/1.517, allocations: 8.031 kB / 0.9899 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002818/1.517, allocations: 110.5 kB / 0.99 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003855/1.517, allocations: 103 kB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/1.519, allocations: 0.5435 MB / 0.9906 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/1.519, allocations: 62 kB / 0.9907 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002506/1.519, allocations: 91.98 kB / 0.9907 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/1.521, allocations: 0.6683 MB / 0.9914 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/1.521, allocations: 4 kB / 0.9914 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.364e-05/1.522, allocations: 24 kB / 0.9914 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.355e-05/1.522, allocations: 16 kB / 0.9914 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/1.523, allocations: 493 kB / 0.9919 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00646/1.53, allocations: 2.246 MB / 0.9941 GB, free: 8.461 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/1.531, allocations: 0.5567 MB / 0.9946 GB, free: 7.891 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 6.338e-05/1.532, allocations: 12.56 kB / 0.9947 GB, free: 7.879 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/1.533, allocations: 370.9 kB / 0.995 GB, free: 7.508 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=68): time 5.48e-06/1.533, allocations: 4 kB / 0.995 GB, free: 7.504 MB / 0.7481 GB Notification: Performance of matching and sorting (n=68): time 0.002637/1.535, allocations: 0.7676 MB / 0.9958 GB, free: 6.73 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/1.535, allocations: 115.4 kB / 0.9959 GB, free: 6.594 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/1.537, allocations: 0.53 MB / 0.9964 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0002742/1.537, allocations: 53.69 kB / 0.9964 GB, free: 5.996 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004949/1.537, allocations: 344.5 kB / 0.9968 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002828/1.538, allocations: 209 kB / 0.997 GB, free: 5.445 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.721e-05/1.538, allocations: 24 kB / 0.997 GB, free: 5.422 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0004105/1.538, allocations: 374.8 kB / 0.9974 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/1.54, allocations: 345.5 kB / 0.9977 GB, free: 4.711 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/1.541, allocations: 478.7 kB / 0.9981 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/1.542, allocations: 487.6 kB / 0.9986 GB, free: 3.684 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/1.542, allocations: 0 / 0.9986 GB, free: 3.684 MB / 0.7481 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003483/1.546, allocations: 1.102 MB / 0.9997 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.001145/1.547, allocations: 1.219 MB / 1.001 GB, free: 1.215 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/1.547, allocations: 0 / 1.001 GB, free: 1.215 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.265e-05/1.547, allocations: 8 kB / 1.001 GB, free: 1.207 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006959/1.548, allocations: 107.8 kB / 1.001 GB, free: 1.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.64e-05/1.548, allocations: 7.984 kB / 1.001 GB, free: 1.094 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/1.55, allocations: 271.3 kB / 1.001 GB, free: 0.8281 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/1.55, allocations: 51.91 kB / 1.001 GB, free: 0.7773 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.227e-05/1.55, allocations: 9.25 kB / 1.001 GB, free: 0.7695 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002888/1.553, allocations: 1.019 MB / 1.002 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/1.553, allocations: 4 kB / 1.002 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/1.553, allocations: 8 kB / 1.002 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/1.554, allocations: 99.97 kB / 1.002 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.109e-05/1.554, allocations: 4.312 kB / 1.002 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/1.555, allocations: 263.2 kB / 1.003 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/1.556, allocations: 43.97 kB / 1.003 GB, free: 15.31 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,greThr.y,or2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0009258/1.557, allocations: 307.2 kB / 1.003 GB, free: 15 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/1.557, allocations: 71.14 kB / 1.003 GB, free: 14.93 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/1.559, allocations: 0.6071 MB / 1.004 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/1.559, allocations: 8 kB / 1.004 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.559, allocations: 0 / 1.004 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/1.559, allocations: 7.938 kB / 1.004 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003745/1.563, allocations: 1.444 MB / 1.005 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.563, allocations: 0 / 1.005 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008487/1.563, allocations: 99.89 kB / 1.005 GB, free: 12.69 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.327e-05/1.563, allocations: 4 kB / 1.005 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.745e-05/1.564, allocations: 23.94 kB / 1.005 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.407e-05/1.564, allocations: 4 kB / 1.005 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/1.564, allocations: 3.938 kB / 1.005 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/1.566, allocations: 1.008 MB / 1.006 GB, free: 11.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/1.567, allocations: 140.3 kB / 1.006 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/1.567, allocations: 27.98 kB / 1.006 GB, free: 11.42 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/1.567, allocations: 47.91 kB / 1.006 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/1.568, allocations: 60.41 kB / 1.006 GB, free: 11.31 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.963e-05/1.568, allocations: 27.98 kB / 1.006 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007441/1.569, allocations: 366.9 kB / 1.007 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.21e-07/1.569, allocations: 0 / 1.007 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.002038/1.571, allocations: 354.8 kB / 1.007 GB, free: 10.58 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,greThr.y,or2.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00352/1.574, allocations: 1.784 MB / 1.009 GB, free: 8.746 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00452/1.579, allocations: 1.841 MB / 1.011 GB, free: 6.781 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/1.579, allocations: 3.938 kB / 1.011 GB, free: 6.777 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008791/1.58, allocations: 299 kB / 1.011 GB, free: 6.488 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/1.581, allocations: 146.2 kB / 1.011 GB, free: 6.352 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/1.587, allocations: 3.593 MB / 1.015 GB, free: 2.652 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007169/1.587, allocations: 0.9428 MB / 1.016 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006144/1.588, allocations: 89.38 kB / 1.016 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005839/1.589, allocations: 287.3 kB / 1.016 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of SimCode: time 1.343e-06/1.589, allocations: 0 / 1.016 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07405/1.663, allocations: 17.81 MB / 1.033 GB, free: 15.82 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003644/1.663, allocations: 192 kB / 1.034 GB, free: 15.59 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.446/6.109, allocations: 0 / 1.034 GB, free: 15.59 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat