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.001059/0.001059, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 195 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 278.6 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9282/0.9282, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 97.62 kB / 0.5953 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1347, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002485/0.1372, allocations: 1.548 MB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008747/0.1381, allocations: 0.566 MB / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.963e-05/0.1382, allocations: 0.7188 kB / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.859e-05/0.1383, allocations: 11.86 kB / 0.6823 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.098e-05/0.1384, allocations: 24.61 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.1387, allocations: 96.38 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.1389, allocations: 97.45 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.864e-05/0.139, allocations: 24.5 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1391, allocations: 47.83 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.114e-05/0.1392, allocations: 47.77 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.1392, allocations: 8 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.1393, allocations: 63.89 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.402e-05/0.1394, allocations: 19.91 kB / 0.6828 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.512e-05/0.1394, allocations: 35.8 kB / 0.6828 GB, free: 14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1396, allocations: 147.5 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1396, allocations: 0 / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1396, allocations: 0 / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1396, allocations: 4 kB / 0.6829 GB, free: 13.85 MB / 494.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.0007157/0.1404, allocations: 448.8 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.1404, allocations: 8.031 kB / 0.6834 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.226e-05/0.1404, allocations: 34.69 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.02e-05/0.1405, allocations: 16.75 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.1407, allocations: 198.1 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1407, allocations: 4.375 kB / 0.6836 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.1407, allocations: 4.375 kB / 0.6836 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.141, allocations: 105.7 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.141, allocations: 0 / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.141, allocations: 4 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.1411, allocations: 7.938 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003299/0.1414, allocations: 87.91 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006153/0.142, allocations: 348.6 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.1424, allocations: 98.44 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.1425, allocations: 56.88 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.1426, allocations: 0 / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.1429, allocations: 123.4 kB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.1429, allocations: 0 / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006651/0.1436, allocations: 205.3 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1436, allocations: 55.41 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1437, allocations: 139.7 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.1437, allocations: 33.7 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.67e-05/0.1438, allocations: 104 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.1438, allocations: 27.55 kB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.1439, allocations: 25.7 kB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.144, allocations: 330.8 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.1442, allocations: 51.95 kB / 0.6853 GB, free: 11.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.1444, allocations: 64.47 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.1448, allocations: 142.4 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1448, allocations: 4 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004532/0.1452, allocations: 207.3 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.1453, allocations: 37.7 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1453, allocations: 0 / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1453, allocations: 0 / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.1455, allocations: 23.91 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1455, allocations: 0 / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1456, allocations: 15.98 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.1457, allocations: 7.938 kB / 0.6858 GB, free: 10.63 MB / 494.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 (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 8.657e-05/0.1457, allocations: 126.5 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.1458, allocations: 7.906 kB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.1458, allocations: 12.72 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.1458, allocations: 0 / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1458, allocations: 4 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1458, allocations: 0 / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.146, allocations: 201.5 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.146, allocations: 0 / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.1461, allocations: 19.97 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1461, allocations: 0 / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1462, allocations: 8 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1462, allocations: 0 / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1462, allocations: 480 / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004247/0.1466, allocations: 188.7 kB / 0.6864 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.1467, allocations: 88.95 kB / 0.6864 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.1467, allocations: 8 kB / 0.6865 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.1468, allocations: 15.97 kB / 0.6865 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.1469, allocations: 11.98 kB / 0.6865 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.1469, allocations: 4 kB / 0.6865 GB, free: 9.855 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.593e-05/0.147, allocations: 113.2 kB / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.147, allocations: 0 / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.1472, allocations: 35.98 kB / 0.6866 GB, free: 9.711 MB / 494.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 (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.0007/0.1479, allocations: 0.7294 MB / 0.6873 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004651/0.1484, allocations: 203.2 kB / 0.6875 GB, free: 8.742 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1484, allocations: 0 / 0.6875 GB, free: 8.742 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.1486, allocations: 63.89 kB / 0.6876 GB, free: 8.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.1489, allocations: 11.98 kB / 0.6876 GB, free: 8.668 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.1511, allocations: 1.698 MB / 0.6893 GB, free: 6.887 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.1513, allocations: 0.7009 MB / 0.6899 GB, free: 6.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.791e-05/0.1514, allocations: 11.98 kB / 0.69 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.835e-05/0.1514, allocations: 27.7 kB / 0.69 GB, free: 6.125 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1514, allocations: 0 / 0.69 GB, free: 6.125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.1703, allocations: 2.727 MB / 0.6926 GB, free: 3.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.856/7.026, allocations: 9.891 kB / 0.6927 GB, free: 3.484 MB / 494.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 & 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)