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.004409/0.004409, allocations: 99.59 kB / 15.73 MB, free: 6.484 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.001156/0.001156, allocations: 192.2 kB / 16.68 MB, free: 6.367 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.202/1.202, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001971/0.001971, allocations: 279 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8565/0.8565, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 91.86 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1319, allocations: 86.98 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002375/0.1343, allocations: 1.534 MB / 0.7674 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008756/0.1352, allocations: 0.5809 MB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.949e-05/0.1352, allocations: 0 / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.032e-05/0.1353, allocations: 19.86 kB / 0.768 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.787e-05/0.1354, allocations: 11.88 kB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.1357, allocations: 99.69 kB / 0.7681 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1359, allocations: 95.69 kB / 0.7681 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.717e-05/0.136, allocations: 24.2 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1361, allocations: 51.84 kB / 0.7682 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.1362, allocations: 43.81 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.1362, allocations: 8 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.1363, allocations: 91.84 kB / 0.7684 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.455e-05/0.1364, allocations: 19.92 kB / 0.7684 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.428e-05/0.1365, allocations: 43.73 kB / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.1367, allocations: 139.8 kB / 0.7686 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1367, allocations: 4 kB / 0.7686 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1367, allocations: 0 / 0.7686 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.1367, allocations: 0 / 0.7686 GB, free: 6.203 MB / 0.5606 GB 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.0006987/0.1374, allocations: 456.6 kB / 0.769 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1374, allocations: 8.031 kB / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.025e-05/0.1375, allocations: 34.75 kB / 0.769 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.1375, allocations: 8.891 kB / 0.769 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.1377, allocations: 196.1 kB / 0.7692 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.1377, allocations: 12.38 kB / 0.7692 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.1377, allocations: 8.312 kB / 0.7692 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.138, allocations: 109.7 kB / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.1381, allocations: 0 / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.1381, allocations: 11.94 kB / 0.7694 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.1381, allocations: 4 kB / 0.7694 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.1384, allocations: 95.84 kB / 0.7695 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.139, allocations: 340.7 kB / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.1393, allocations: 98.5 kB / 0.7699 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.1395, allocations: 60.81 kB / 0.7699 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.1395, allocations: 0 / 0.7699 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002954/0.1398, allocations: 111.3 kB / 0.77 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.734e-06/0.1398, allocations: 4 kB / 0.77 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0006152/0.1404, allocations: 201.5 kB / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.1405, allocations: 51.41 kB / 0.7703 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1406, allocations: 152 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.1406, allocations: 25.7 kB / 0.7705 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.004e-05/0.1407, allocations: 96.08 kB / 0.7705 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.1407, allocations: 35.86 kB / 0.7706 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/0.1408, allocations: 29.7 kB / 0.7706 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.1409, allocations: 326.8 kB / 0.7709 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.1411, allocations: 55.95 kB / 0.771 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.1412, allocations: 51.95 kB / 0.771 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.1416, allocations: 150.4 kB / 0.7712 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1416, allocations: 0 / 0.7712 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004253/0.142, allocations: 203.6 kB / 0.7714 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.1421, allocations: 29.7 kB / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1421, allocations: 0 / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1421, allocations: 4 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.1422, allocations: 28 kB / 0.7714 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1422, allocations: 3.938 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1424, allocations: 19.92 kB / 0.7714 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.1424, allocations: 7.938 kB / 0.7715 GB, free: 2.977 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.881e-05/0.1425, allocations: 118.5 kB / 0.7716 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.1425, allocations: 7.953 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.1425, allocations: 16.72 kB / 0.7716 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.1426, allocations: 4 kB / 0.7716 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1426, allocations: 0 / 0.7716 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1426, allocations: 0 / 0.7716 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.1427, allocations: 209.5 kB / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1427, allocations: 0 / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1429, allocations: 19.97 kB / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1429, allocations: 0 / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.1429, allocations: 0 / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1429, allocations: 0 / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1429, allocations: 0 / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.1433, allocations: 192.9 kB / 0.772 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.103e-05/0.1434, allocations: 85 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.1434, allocations: 4 kB / 0.7721 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.1435, allocations: 19.97 kB / 0.7721 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.1436, allocations: 15.98 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.1436, allocations: 3.984 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.379e-05/0.1437, allocations: 113.4 kB / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.492e-06/0.1437, allocations: 0 / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002271/0.1439, allocations: 43.92 kB / 0.7723 GB, free: 2.047 MB / 0.5606 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 ($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 (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.0006779/0.1446, allocations: 0.7466 MB / 0.773 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004181/0.145, allocations: 183.2 kB / 0.7732 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.145, allocations: 0 / 0.7732 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.1452, allocations: 63.95 kB / 0.7732 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.1454, allocations: 15.92 kB / 0.7732 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2432/0.3886, allocations: 1.694 MB / 0.7749 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.3887, allocations: 0.7042 MB / 0.7756 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.82e-05/0.3888, allocations: 12.19 kB / 0.7756 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.902e-05/0.3889, allocations: 30.48 kB / 0.7756 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of SimCode: time 1.243e-06/0.3889, allocations: 0.6562 kB / 0.7756 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.4064, allocations: 2.763 MB / 0.7783 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.659/7.065, allocations: 6.281 kB / 0.7783 GB, free: 13.58 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)