Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices",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.0009029/0.000903, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005632/0.005632, allocations: 169.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.4/2.4, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002858, allocations: 11.86 kB / 0.9029 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2282, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.0008711/0.2291, allocations: 0.5572 MB / 1.059 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2302, allocations: 1.022 MB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.661e-05/0.2303, allocations: 4 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.902e-05/0.2303, allocations: 7.938 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.591e-05/0.2304, allocations: 19.84 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.2307, allocations: 67.88 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.2308, allocations: 123.6 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.231, allocations: 49.08 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.824e-05/0.231, allocations: 35.84 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.989e-05/0.2311, allocations: 51.77 kB / 1.061 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.2311, allocations: 7.938 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.224e-05/0.2312, allocations: 55.89 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.302e-05/0.2313, allocations: 39.84 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.624e-05/0.2313, allocations: 77.3 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.2316, allocations: 199.6 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2316, allocations: 0 / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2316, allocations: 0 / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.2316, allocations: 0 / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0007401/0.2323, allocations: 0.4911 MB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2324, allocations: 11.97 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.471e-05/0.2324, allocations: 50.73 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.2324, allocations: 12.75 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.2326, allocations: 217.7 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.314e-06/0.2326, allocations: 4.375 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.2327, allocations: 8.375 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.2332, allocations: 234 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2332, allocations: 7.938 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.2332, allocations: 0 / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2332, allocations: 0 / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007455/0.234, allocations: 277.3 kB / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008566/0.2349, allocations: 0.5549 MB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.2353, allocations: 190.5 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000411/0.2357, allocations: 188.8 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.529e-05/0.2358, allocations: 11.97 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.2358, allocations: 34.5 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.182e-06/0.2358, allocations: 0 / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001354/0.2372, allocations: 0.5497 MB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.2372, allocations: 55.34 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.2373, allocations: 151.7 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.2374, allocations: 29.7 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.2374, allocations: 108.5 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.227e-05/0.2375, allocations: 67 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.2375, allocations: 29.7 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2376, allocations: 326.8 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.238, allocations: 159.9 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003897/0.2384, allocations: 165.1 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.2392, allocations: 356.9 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2392, allocations: 0 / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008433/0.2401, allocations: 385.2 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2401, allocations: 4 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.2401, allocations: 4 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/0.2402, allocations: 4 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.2404, allocations: 51.83 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2404, allocations: 4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.2406, allocations: 51.8 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.2406, allocations: 8 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.2407, allocations: 147.5 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.2408, allocations: 11.81 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009129/0.2417, allocations: 410.6 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2417, allocations: 7.938 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2417, allocations: 7.984 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.2417, allocations: 0 / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.242, allocations: 269.7 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.242, allocations: 0 / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.2422, allocations: 59.94 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2422, allocations: 0 / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2422, allocations: 0 / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.2422, allocations: 7.938 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2422, allocations: 3.938 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009144/0.2431, allocations: 486.5 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.2432, allocations: 92.86 kB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.2432, allocations: 0 / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.2434, allocations: 51.89 kB / 1.067 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.2435, allocations: 15.98 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.2435, allocations: 0 / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.405e-05/0.2436, allocations: 118.1 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2436, allocations: 0 / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002549/0.2439, allocations: 36 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001205/0.2451, allocations: 1.048 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008988/0.246, allocations: 443.1 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.246, allocations: 3.938 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004642/0.2465, allocations: 267.2 kB / 1.069 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2468, allocations: 23.92 kB / 1.069 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.2501, allocations: 2.516 MB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.2504, allocations: 0.7393 MB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.799e-05/0.2505, allocations: 19.97 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.615e-05/0.2505, allocations: 47.36 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2505, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.898/3.148, allocations: 3.389 MB / 1.076 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000388/3.149, allocations: 228 kB / 1.076 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/5.011, allocations: 2.391 kB / 1.076 GB, free: 3.074 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1)