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.001686/0.001686, 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.002216/0.002216, allocations: 192.8 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002219/0.002219, allocations: 274.7 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9253/0.9253, allocations: 169.2 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 92.83 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1318, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002621/0.1344, allocations: 1.539 MB / 0.6818 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.1354, allocations: 0.5687 MB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.1355, allocations: 4 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.65e-05/0.1356, allocations: 15.86 kB / 0.6824 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.864e-05/0.1356, allocations: 11.86 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.136, allocations: 95.7 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.1361, allocations: 99.69 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.971e-05/0.1362, allocations: 28.5 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.1364, allocations: 39.84 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.457e-05/0.1365, allocations: 59.69 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.1365, allocations: 4 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1366, allocations: 59.89 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.655e-05/0.1367, allocations: 23.92 kB / 0.6828 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.686e-05/0.1367, allocations: 35.8 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.137, allocations: 143.5 kB / 0.6829 GB, free: 13.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.137, allocations: 8 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.137, allocations: 0 / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.137, allocations: 0 / 0.6829 GB, free: 13.87 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.0008135/0.1378, allocations: 444.8 kB / 0.6834 GB, free: 13.38 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1379, allocations: 12.03 kB / 0.6834 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.1379, allocations: 34.75 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.138, allocations: 12.75 kB / 0.6834 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1381, allocations: 202 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1382, allocations: 384 / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.1382, allocations: 8.375 kB / 0.6836 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.1385, allocations: 101.7 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1385, allocations: 4 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1386, allocations: 0 / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.1386, allocations: 8 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.1389, allocations: 95.78 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006605/0.1396, allocations: 344.6 kB / 0.6841 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.1399, allocations: 94.5 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.1401, allocations: 60.88 kB / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.1402, allocations: 0 / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.1405, allocations: 115.3 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.734e-06/0.1405, allocations: 4 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000662/0.1412, allocations: 201.7 kB / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.1412, allocations: 59.39 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1413, allocations: 135.7 kB / 0.6848 GB, free: 11.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1414, allocations: 33.64 kB / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.1414, allocations: 108 kB / 0.6849 GB, free: 11.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.1415, allocations: 31.62 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.1415, allocations: 25.7 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.593e-05/0.1416, allocations: 326.8 kB / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.1418, allocations: 55.95 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.142, allocations: 60.47 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/0.1424, allocations: 146.4 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1424, allocations: 0 / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004962/0.1429, allocations: 203.2 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.143, allocations: 29.7 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.143, allocations: 4 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.143, allocations: 4 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1432, allocations: 19.97 kB / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.1432, allocations: 4.062 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.1433, allocations: 11.98 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.1434, allocations: 7.938 kB / 0.6858 GB, free: 10.66 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.93e-05/0.1434, allocations: 130.4 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.1435, allocations: 11.91 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.134e-05/0.1435, allocations: 8.719 kB / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.1435, allocations: 4 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1435, allocations: 0 / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1436, allocations: 3.984 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.1437, allocations: 201.5 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1437, allocations: 0 / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1439, allocations: 23.97 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1439, allocations: 0 / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1439, allocations: 0 / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1439, allocations: 4 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1439, allocations: 4 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004421/0.1443, allocations: 185 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.1444, allocations: 84.95 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.1444, allocations: 7.938 kB / 0.6864 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.1446, allocations: 23.97 kB / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.1446, allocations: 7.984 kB / 0.6865 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1447, allocations: 8 kB / 0.6865 GB, free: 9.875 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.901e-05/0.1447, allocations: 115.1 kB / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1447, allocations: 0 / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.145, allocations: 32 kB / 0.6866 GB, free: 9.73 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.0007455/0.1458, allocations: 0.7333 MB / 0.6873 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.1462, allocations: 191.2 kB / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1462, allocations: 4 kB / 0.6875 GB, free: 8.766 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002063/0.1465, allocations: 59.95 kB / 0.6876 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.1467, allocations: 21.98 kB / 0.6876 GB, free: 8.688 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1489, allocations: 1.69 MB / 0.6893 GB, free: 6.914 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.1492, allocations: 0.7087 MB / 0.6899 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.547e-05/0.1493, allocations: 11.98 kB / 0.69 GB, free: 6.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.1493, allocations: 31.36 kB / 0.69 GB, free: 6.141 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1493, allocations: 0 / 0.69 GB, free: 6.141 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.215/1.364, allocations: 2.729 MB / 0.6927 GB, free: 3.508 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/11.87, allocations: 5.828 kB / 0.6927 GB, free: 3.504 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)