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.001143/0.001146, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009332/0.0009331, allocations: 190 kB / 16.14 MB, free: 6.719 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.198/1.198, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.378/2.378, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 64.53 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2409, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001882/0.2428, allocations: 0.8961 MB / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.2439, allocations: 1.026 MB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.244, allocations: 4 kB / 1.054 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.163e-05/0.2441, allocations: 7.922 kB / 1.054 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.936e-05/0.2441, allocations: 11.88 kB / 1.054 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.2444, allocations: 75.84 kB / 1.054 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000111/0.2445, allocations: 115.6 kB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.2447, allocations: 53.03 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.597e-05/0.2447, allocations: 47.89 kB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.533e-05/0.2448, allocations: 63.73 kB / 1.054 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.2448, allocations: 4 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.431e-05/0.2449, allocations: 55.91 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.245, allocations: 43.84 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.828e-05/0.245, allocations: 63.47 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2453, allocations: 203.6 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2453, allocations: 0 / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2453, allocations: 0 / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.2453, allocations: 0 / 1.055 GB, free: 5.543 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.0007279/0.246, allocations: 490.8 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2461, allocations: 15.97 kB / 1.055 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.2461, allocations: 42.73 kB / 1.055 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.2461, allocations: 16.75 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.2463, allocations: 215.8 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-06/0.2463, allocations: 384 / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2463, allocations: 16.38 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.2469, allocations: 206 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2469, allocations: 3.938 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2469, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2469, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006698/0.2476, allocations: 223.8 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.2484, allocations: 0.5236 MB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.2488, allocations: 170.5 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.2492, allocations: 160.7 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.2492, allocations: 8 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.2493, allocations: 34.56 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.212e-06/0.2493, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001228/0.2505, allocations: 479.2 kB / 1.057 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.2505, allocations: 59.34 kB / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2506, allocations: 148.5 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.2507, allocations: 33.7 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.2507, allocations: 112.5 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.2508, allocations: 59.02 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-05/0.2508, allocations: 33.78 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2509, allocations: 326.8 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.2513, allocations: 139.9 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.2517, allocations: 127.9 kB / 1.058 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.2524, allocations: 305.4 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2524, allocations: 0 / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007686/0.2532, allocations: 329.2 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2532, allocations: 5.25 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.2532, allocations: 3.984 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2532, allocations: 4 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.2535, allocations: 39.89 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.2535, allocations: 0 / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2536, allocations: 43.8 kB / 1.059 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.2537, allocations: 3.938 kB / 1.059 GB, free: 1.016 MB / 0.8106 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.0001182/0.2538, allocations: 133.8 kB / 1.059 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.2538, allocations: 15.81 kB / 1.059 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008535/0.2547, allocations: 370.3 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.2547, allocations: 3.938 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2547, allocations: 0 / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2547, allocations: 4 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.255, allocations: 273.7 kB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.255, allocations: 0 / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.2552, allocations: 31.95 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2552, allocations: 8 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.2552, allocations: 3.984 kB / 1.06 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2552, allocations: 3.938 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2552, allocations: 7.938 kB / 1.06 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007974/0.256, allocations: 433.5 kB / 1.06 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.2561, allocations: 92.86 kB / 1.06 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.2561, allocations: 11.98 kB / 1.06 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2563, allocations: 27.91 kB / 1.06 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.2564, allocations: 19.97 kB / 1.06 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.2564, allocations: 0 / 1.06 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.41e-05/0.2565, allocations: 114.5 kB / 1.06 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2565, allocations: 0 / 1.06 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002589/0.2567, allocations: 44 kB / 1.061 GB, free: 15.35 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.001117/0.2578, allocations: 0.9904 MB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007796/0.2586, allocations: 382.8 kB / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.2587, allocations: 4 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.2591, allocations: 239.2 kB / 1.062 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.2594, allocations: 19.94 kB / 1.062 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.2624, allocations: 2.382 MB / 1.064 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.2627, allocations: 0.7354 MB / 1.065 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.733e-05/0.2628, allocations: 19.91 kB / 1.065 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.769e-05/0.2628, allocations: 42.3 kB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.2628, allocations: 3.938 kB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2548/0.5176, allocations: 3.468 MB / 1.069 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/0.5178, allocations: 228 kB / 1.069 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.347, allocations: 13.62 kB / 1.069 GB, free: 6.824 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)