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.007229/0.007229, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001754/0.001754, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 267.2 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9417/0.9417, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 108 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1646, allocations: 86.97 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002827/0.1675, allocations: 1.532 MB / 0.7674 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.1687, allocations: 0.5809 MB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.58e-05/0.1688, allocations: 0 / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1689, allocations: 11.86 kB / 0.7679 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.866e-05/0.169, allocations: 19.81 kB / 0.768 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.1695, allocations: 91.75 kB / 0.768 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.1697, allocations: 95.64 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1698, allocations: 32.42 kB / 0.7682 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.17, allocations: 43.84 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1701, allocations: 51.81 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.1701, allocations: 4 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.1703, allocations: 87.91 kB / 0.7684 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.1703, allocations: 19.92 kB / 0.7684 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.333e-05/0.1704, allocations: 39.73 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1707, allocations: 139.5 kB / 0.7685 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1707, allocations: 0 / 0.7685 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.034e-06/0.1707, allocations: 0 / 0.7685 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.1707, allocations: 8 kB / 0.7685 GB, free: 6.207 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.0009816/0.1717, allocations: 452.7 kB / 0.769 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.1718, allocations: 8.031 kB / 0.769 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.63e-05/0.1718, allocations: 38.67 kB / 0.769 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/0.1719, allocations: 20.84 kB / 0.769 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.1722, allocations: 188.1 kB / 0.7692 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.1722, allocations: 4.312 kB / 0.7692 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1722, allocations: 12.36 kB / 0.7692 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004454/0.1727, allocations: 105.8 kB / 0.7693 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1727, allocations: 0 / 0.7693 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.1727, allocations: 0 / 0.7693 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.1728, allocations: 7.984 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.1731, allocations: 87.86 kB / 0.7694 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007567/0.1739, allocations: 356.6 kB / 0.7698 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.1742, allocations: 86.52 kB / 0.7699 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.1744, allocations: 60.88 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.1744, allocations: 4 kB / 0.7699 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003904/0.1748, allocations: 123.2 kB / 0.77 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 2.084e-06/0.1748, allocations: 0 / 0.77 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0006701/0.1755, allocations: 205.4 kB / 0.7702 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.1756, allocations: 59.41 kB / 0.7703 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.1757, allocations: 140 kB / 0.7704 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1757, allocations: 25.7 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.1758, allocations: 100 kB / 0.7705 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.1759, allocations: 27.72 kB / 0.7706 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.627e-05/0.176, allocations: 33.7 kB / 0.7706 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001764/0.1762, allocations: 326.8 kB / 0.7709 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.1764, allocations: 55.95 kB / 0.771 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.1766, allocations: 56.23 kB / 0.771 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1769, allocations: 146.5 kB / 0.7712 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1769, allocations: 0 / 0.7712 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004746/0.1774, allocations: 207.3 kB / 0.7714 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/0.1775, allocations: 33.7 kB / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1775, allocations: 0 / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1775, allocations: 0 / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.1777, allocations: 23.97 kB / 0.7714 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1777, allocations: 0 / 0.7714 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.1778, allocations: 23.89 kB / 0.7714 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.1779, allocations: 3.938 kB / 0.7714 GB, free: 2.988 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 0.0001157/0.178, allocations: 126.4 kB / 0.7716 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.178, allocations: 7.906 kB / 0.7716 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.692e-05/0.1781, allocations: 12.72 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.1781, allocations: 7.984 kB / 0.7716 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1781, allocations: 8 kB / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1781, allocations: 0 / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.1783, allocations: 193.5 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1783, allocations: 0 / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.1784, allocations: 19.97 kB / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1784, allocations: 0 / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.1785, allocations: 4 kB / 0.7718 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1785, allocations: 0 / 0.7718 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1785, allocations: 4 kB / 0.7718 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004343/0.1789, allocations: 188.8 kB / 0.772 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.245e-05/0.179, allocations: 92.86 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.179, allocations: 3.984 kB / 0.7721 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.1792, allocations: 11.98 kB / 0.7721 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.566e-05/0.1792, allocations: 11.98 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.1793, allocations: 8 kB / 0.7721 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.935e-05/0.1793, allocations: 113.4 kB / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1794, allocations: 0 / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002666/0.1796, allocations: 40 kB / 0.7723 GB, free: 2.059 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.0009711/0.1806, allocations: 0.745 MB / 0.773 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000457/0.1811, allocations: 179.2 kB / 0.7731 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1811, allocations: 0 / 0.7731 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.1813, allocations: 63.95 kB / 0.7732 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.1815, allocations: 14.17 kB / 0.7732 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.31/0.4915, allocations: 1.698 MB / 0.7749 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.4917, allocations: 0.7023 MB / 0.7756 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.896e-05/0.4918, allocations: 13.59 kB / 0.7756 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.925e-05/0.4919, allocations: 30.38 kB / 0.7756 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of SimCode: time 7.51e-07/0.4919, allocations: 1.594 kB / 0.7756 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.5128, allocations: 2.813 MB / 0.7784 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.882, allocations: 6.625 kB / 0.7784 GB, free: 13.01 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 & /home/hudson/saved_omc/OMSimulator/install/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)