Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker",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.001579/0.001579, allocations: 99.78 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.002345/0.002345, 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 2.438/2.438, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00336/0.003361, allocations: 255.2 kB / 291.2 MB, free: 2.023 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.513/1.513, allocations: 144.6 MB / 487 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000814/0.0008142, allocations: 13.25 kB / 0.5684 GB, free: 38.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2614, allocations: 83.09 MB / 0.6495 GB, free: 3.484 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.003061/0.2645, allocations: 1.228 MB / 0.6507 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.2662, allocations: 0.5408 MB / 0.6513 GB, free: 1.703 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.836e-05/0.2664, allocations: 0 / 0.6513 GB, free: 1.703 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.2665, allocations: 4.5 kB / 0.6513 GB, free: 1.699 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.2666, allocations: 30.42 kB / 0.6513 GB, free: 1.672 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/0.2672, allocations: 59.86 kB / 0.6513 GB, free: 1.613 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.2674, allocations: 55.86 kB / 0.6514 GB, free: 1.559 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2676, allocations: 17.75 kB / 0.6514 GB, free: 1.539 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.2678, allocations: 43.83 kB / 0.6515 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.2679, allocations: 40.36 kB / 0.6515 GB, free: 1.457 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.268, allocations: 4.5 kB / 0.6515 GB, free: 1.453 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.2681, allocations: 52.42 kB / 0.6515 GB, free: 1.402 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.287e-05/0.2682, allocations: 11.98 kB / 0.6516 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.706e-05/0.2683, allocations: 40.05 kB / 0.6516 GB, free: 1.348 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.2685, allocations: 87.83 kB / 0.6517 GB, free: 1.262 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2686, allocations: 3.938 kB / 0.6517 GB, free: 1.258 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2686, allocations: 0 / 0.6517 GB, free: 1.258 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2686, allocations: 0 / 0.6517 GB, free: 1.258 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001231/0.2698, allocations: 447.5 kB / 0.6521 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.2699, allocations: 13 kB / 0.6521 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.417e-05/0.27, allocations: 38.55 kB / 0.6522 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.618e-05/0.2701, allocations: 7.906 kB / 0.6522 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003246/0.2704, allocations: 195.4 kB / 0.6524 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2705, allocations: 8 kB / 0.6524 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.2705, allocations: 4.719 kB / 0.6524 GB, free: 472 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.2711, allocations: 111.5 kB / 0.6525 GB, free: 356 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2711, allocations: 8.969 kB / 0.6525 GB, free: 348 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.2712, allocations: 4 kB / 0.6525 GB, free: 344 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/0.2712, allocations: 4.875 kB / 0.6525 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006578/0.2719, allocations: 107 kB / 0.6526 GB, free: 236 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.273, allocations: 364.5 kB / 0.6529 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.2736, allocations: 105.6 kB / 0.653 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.2737, allocations: 1.531 kB / 0.653 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005549/0.2742, allocations: 125.3 kB / 0.6532 GB, free: 15.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=9): time 3.838e-06/0.2742, allocations: 0 / 0.6532 GB, free: 15.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=9): time 0.001326/0.2756, allocations: 318.9 kB / 0.6535 GB, free: 15.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.2757, allocations: 59.47 kB / 0.6535 GB, free: 15.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.2759, allocations: 142.8 kB / 0.6537 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.276, allocations: 25.7 kB / 0.6537 GB, free: 15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2761, allocations: 104 kB / 0.6538 GB, free: 14.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.252e-05/0.2761, allocations: 23.66 kB / 0.6538 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.2762, allocations: 288 / 0.6538 GB, free: 14.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.2764, allocations: 326.8 kB / 0.6541 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.2768, allocations: 63.95 kB / 0.6542 GB, free: 14.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.2772, allocations: 71.89 kB / 0.6542 GB, free: 14.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.2776, allocations: 93.7 kB / 0.6543 GB, free: 14.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2776, allocations: 0 / 0.6543 GB, free: 14.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008451/0.2785, allocations: 231.1 kB / 0.6546 GB, free: 14.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.989e-05/0.2785, allocations: 29.7 kB / 0.6546 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2786, allocations: 0 / 0.6546 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2786, allocations: 4 kB / 0.6546 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.2789, allocations: 27.97 kB / 0.6546 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.2789, allocations: 3.953 kB / 0.6546 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.2792, allocations: 15.98 kB / 0.6546 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.2792, allocations: 4 kB / 0.6546 GB, free: 13.99 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 1 * Algorithm blocks: 1 * 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.0001674/0.2794, allocations: 129.8 kB / 0.6548 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.2794, allocations: 7.906 kB / 0.6548 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.2795, allocations: 8.719 kB / 0.6548 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.365e-05/0.2795, allocations: 7.984 kB / 0.6548 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2796, allocations: 3.938 kB / 0.6548 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.2796, allocations: 3.953 kB / 0.6548 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.2799, allocations: 201.5 kB / 0.655 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2799, allocations: 0 / 0.655 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.2801, allocations: 31.97 kB / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2802, allocations: 0 / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.2802, allocations: 0 / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.2802, allocations: 4 kB / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2802, allocations: 0 / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007881/0.281, allocations: 204.8 kB / 0.6552 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.759e-05/0.2811, allocations: 85.02 kB / 0.6553 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.2812, allocations: 3.984 kB / 0.6553 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.2814, allocations: 27.98 kB / 0.6553 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.2815, allocations: 15.97 kB / 0.6553 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.2815, allocations: 0 / 0.6553 GB, free: 13.17 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001292/0.2817, allocations: 109.6 kB / 0.6554 GB, free: 13.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.587e-06/0.2817, allocations: 0 / 0.6554 GB, free: 13.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.2822, allocations: 47.86 kB / 0.6555 GB, free: 13.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0014/0.2836, allocations: 0.7529 MB / 0.6562 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008544/0.2844, allocations: 207.2 kB / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2845, allocations: 0 / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.2848, allocations: 71.95 kB / 0.6565 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.2851, allocations: 8 kB / 0.6565 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.2879, allocations: 0.8214 MB / 0.6573 GB, free: 11.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.2883, allocations: 0.7023 MB / 0.658 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.2885, allocations: 15.97 kB / 0.658 GB, free: 10.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2886, allocations: 27.44 kB / 0.658 GB, free: 10.3 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2886, allocations: 4 kB / 0.658 GB, free: 10.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08688/0.3755, allocations: 2.4 MB / 0.6604 GB, free: 8.055 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004054/0.376, allocations: 195.3 kB / 0.6606 GB, free: 7.812 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.942/3.318, allocations: 0 / 0.6606 GB, free: 7.812 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) Environment - environmentSimulation: