Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.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.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",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.001104/0.001104, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001268/0.001269, allocations: 177.3 kB / 15.95 MB, free: 216 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.886/1.886, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.368/4.368, allocations: 409.2 MB / 0.6838 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006895/0.0006898, allocations: 16 kB / 0.8375 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.339/1.34, allocations: 146.8 MB / 0.9809 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.001287/1.341, allocations: 487.9 kB / 0.9813 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001499/1.342, allocations: 0.8624 MB / 0.9822 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.973e-05/1.343, allocations: 0 / 0.9822 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.272e-05/1.343, allocations: 0 / 0.9822 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001288/1.343, allocations: 11.92 kB / 0.9822 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/1.343, allocations: 35.91 kB / 0.9822 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/1.343, allocations: 47.92 kB / 0.9823 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/1.343, allocations: 19.92 kB / 0.9823 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/1.343, allocations: 31.91 kB / 0.9823 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/1.344, allocations: 43.83 kB / 0.9824 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/1.344, allocations: 8 kB / 0.9824 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/1.344, allocations: 0 / 0.9824 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/1.344, allocations: 15.97 kB / 0.9824 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.414e-05/1.344, allocations: 33.64 kB / 0.9824 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/1.344, allocations: 59.86 kB / 0.9825 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/1.344, allocations: 0 / 0.9825 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.236e-06/1.344, allocations: 0 / 0.9825 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.818e-06/1.344, allocations: 0 / 0.9825 GB, free: 4.613 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.00086/1.345, allocations: 385.4 kB / 0.9829 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/1.345, allocations: 12.03 kB / 0.9829 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.058e-05/1.345, allocations: 34.56 kB / 0.9829 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/1.345, allocations: 7.906 kB / 0.9829 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/1.345, allocations: 182.8 kB / 0.9831 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/1.345, allocations: 8 kB / 0.9831 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/1.345, allocations: 4 kB / 0.9831 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/1.346, allocations: 120.2 kB / 0.9832 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/1.346, allocations: 0 / 0.9832 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/1.346, allocations: 4 kB / 0.9832 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/1.346, allocations: 0 / 0.9832 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006116/1.347, allocations: 119.9 kB / 0.9833 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008753/1.347, allocations: 352.6 kB / 0.9837 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009916/1.348, allocations: 130.6 kB / 0.9838 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/1.348, allocations: 4.156 kB / 0.9838 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/1.348, allocations: 46.47 kB / 0.9838 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.714e-06/1.349, allocations: 0 / 0.9838 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.001146/1.35, allocations: 213.5 kB / 0.984 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/1.35, allocations: 51.41 kB / 0.9841 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/1.35, allocations: 125.8 kB / 0.9842 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/1.35, allocations: 25.7 kB / 0.9842 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/1.35, allocations: 96.05 kB / 0.9843 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/1.35, allocations: 15.73 kB / 0.9843 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/1.35, allocations: 3.938 kB / 0.9843 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001469/1.35, allocations: 326.8 kB / 0.9847 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/1.351, allocations: 51.95 kB / 0.9847 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/1.351, allocations: 63.89 kB / 0.9848 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/1.351, allocations: 55.95 kB / 0.9848 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.351, allocations: 0 / 0.9848 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0007712/1.352, allocations: 165.5 kB / 0.985 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/1.352, allocations: 4 kB / 0.985 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.352, allocations: 4 kB / 0.985 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/1.352, allocations: 0 / 0.985 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/1.352, allocations: 27.97 kB / 0.985 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/1.352, allocations: 4 kB / 0.985 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/1.353, allocations: 15.98 kB / 0.985 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/1.353, allocations: 8.531 kB / 0.985 GB, free: 1.781 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (max1.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001473/1.353, allocations: 121.7 kB / 0.9851 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/1.353, allocations: 7.906 kB / 0.9852 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008031/1.354, allocations: 166 kB / 0.9853 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/1.354, allocations: 0 / 0.9853 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/1.354, allocations: 0 / 0.9853 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.354, allocations: 4 kB / 0.9853 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/1.354, allocations: 205.5 kB / 0.9855 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.354, allocations: 4 kB / 0.9855 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/1.354, allocations: 27.97 kB / 0.9855 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/1.355, allocations: 4 kB / 0.9855 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/1.355, allocations: 7.984 kB / 0.9856 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/1.355, allocations: 4.016 kB / 0.9856 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.355, allocations: 7.922 kB / 0.9856 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000837/1.355, allocations: 251.4 kB / 0.9858 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.57e-05/1.356, allocations: 88.97 kB / 0.9859 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/1.356, allocations: 8 kB / 0.9859 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/1.356, allocations: 15.98 kB / 0.9859 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/1.356, allocations: 15.97 kB / 0.9859 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/1.356, allocations: 8 kB / 0.9859 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.97e-05/1.356, allocations: 91.7 kB / 0.986 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/1.356, allocations: 0 / 0.986 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000456/1.357, allocations: 19.94 kB / 0.986 GB, free: 0.6406 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (max1.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001267/1.358, allocations: 0.7982 MB / 0.9868 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007378/1.359, allocations: 131.9 kB / 0.987 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.359, allocations: 0 / 0.987 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004065/1.359, allocations: 79.88 kB / 0.987 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/1.359, allocations: 8.266 kB / 0.987 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/1.362, allocations: 0.6461 MB / 0.9877 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/1.362, allocations: 0.6965 MB / 0.9883 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000134/1.362, allocations: 8.188 kB / 0.9884 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/1.362, allocations: 39.28 kB / 0.9884 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of SimCode: time 8.12e-07/1.362, allocations: 0 / 0.9884 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/1.381, allocations: 2.223 MB / 0.9906 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002977/1.382, allocations: 188.1 kB / 0.9907 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.288/3.67, allocations: 0 / 0.9907 GB, free: 11.81 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat does not exist to compare? outputFormat=mat