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.001236/0.001236, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001112/0.001112, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.294/1.294, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002045/0.002045, allocations: 290.9 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9434/0.9434, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 88.7 kB / 0.5948 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1532, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002806/0.156, allocations: 1.597 MB / 0.6813 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008849/0.1569, allocations: 0.5584 MB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.157, allocations: 5.531 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1571, allocations: 7.922 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.729e-05/0.1572, allocations: 20.73 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003784/0.1576, allocations: 87.84 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.1577, allocations: 93.2 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.984e-05/0.1578, allocations: 21.75 kB / 0.6821 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1579, allocations: 55.77 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.275e-05/0.158, allocations: 43.77 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.158, allocations: 8 kB / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.1581, allocations: 63.89 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.543e-05/0.1582, allocations: 23.91 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.1583, allocations: 31.8 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.1585, allocations: 147.5 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1585, allocations: 0 / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1585, allocations: 4 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1585, allocations: 0 / 0.6824 GB, free: 14.19 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.0007434/0.1592, allocations: 444.8 kB / 0.6828 GB, free: 13.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1593, allocations: 8.031 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.553e-05/0.1593, allocations: 34.75 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.1594, allocations: 12.75 kB / 0.6829 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.1595, allocations: 196.1 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1596, allocations: 8.375 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.1596, allocations: 8.375 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.1599, allocations: 101.7 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1599, allocations: 0 / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.1599, allocations: 4 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.1599, allocations: 4 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.1603, allocations: 91.84 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005781/0.1608, allocations: 348.6 kB / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.1611, allocations: 98.5 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.1613, allocations: 52.88 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1613, allocations: 4.078 kB / 0.6838 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.1617, allocations: 119.2 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.502e-06/0.1617, allocations: 0 / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006233/0.1623, allocations: 217.7 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.1624, allocations: 55.39 kB / 0.6841 GB, free: 12.22 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1625, allocations: 143 kB / 0.6843 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.1625, allocations: 29.7 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.1626, allocations: 104 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.1626, allocations: 31.56 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/0.1626, allocations: 29.7 kB / 0.6845 GB, free: 11.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.367e-05/0.1627, allocations: 322.8 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.1629, allocations: 55.95 kB / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.1631, allocations: 55.95 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.1634, allocations: 150.5 kB / 0.685 GB, free: 11.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1635, allocations: 0 / 0.685 GB, free: 11.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004269/0.1639, allocations: 199.2 kB / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.1639, allocations: 35.89 kB / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1639, allocations: 0 / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.164, allocations: 4 kB / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.1641, allocations: 19.97 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.1641, allocations: 4 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.1643, allocations: 15.98 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.1643, allocations: 7.938 kB / 0.6853 GB, free: 10.98 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.885e-05/0.1644, allocations: 122.4 kB / 0.6854 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.1644, allocations: 7.906 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1644, allocations: 16.72 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.1645, allocations: 4 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1645, allocations: 0 / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1645, allocations: 3.984 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.1646, allocations: 201.5 kB / 0.6856 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1646, allocations: 0 / 0.6856 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.1648, allocations: 15.97 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.1648, allocations: 4 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.1648, allocations: 0 / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1648, allocations: 0 / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1648, allocations: 4 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.1652, allocations: 185 kB / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.201e-05/0.1653, allocations: 92.89 kB / 0.6859 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1653, allocations: 4 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1654, allocations: 15.97 kB / 0.6859 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.1655, allocations: 19.98 kB / 0.686 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.1655, allocations: 0 / 0.686 GB, free: 10.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.26e-05/0.1656, allocations: 117 kB / 0.6861 GB, free: 10.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1656, allocations: 0 / 0.6861 GB, free: 10.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.1658, allocations: 36 kB / 0.6861 GB, free: 10.05 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.0006984/0.1665, allocations: 0.7294 MB / 0.6868 GB, free: 9.293 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000445/0.167, allocations: 203.2 kB / 0.687 GB, free: 9.082 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.167, allocations: 0 / 0.687 GB, free: 9.082 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.1672, allocations: 67.95 kB / 0.6871 GB, free: 9.016 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.1674, allocations: 7.984 kB / 0.6871 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.1696, allocations: 1.725 MB / 0.6888 GB, free: 7.203 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.1698, allocations: 0.7041 MB / 0.6895 GB, free: 6.473 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.18e-05/0.1699, allocations: 11.98 kB / 0.6895 GB, free: 6.461 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.138e-05/0.17, allocations: 27.42 kB / 0.6895 GB, free: 6.434 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.17, allocations: 0 / 0.6895 GB, free: 6.434 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.252/1.422, allocations: 2.583 MB / 0.692 GB, free: 3.992 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/1.422, allocations: 208.1 kB / 0.6922 GB, free: 3.742 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/3.75, allocations: 0 / 0.6922 GB, free: 3.742 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 & /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)