Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_latest_Buildings_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.00772/0.00772, allocations: 97.47 kB / 15.73 MB, free: 6.055 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.001758/0.001758, allocations: 195.3 kB / 16.68 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.458/1.458, 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/Buildings 12.0.0-master/package.mo): time 2.782/2.782, allocations: 472.7 MB / 0.7453 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 60.09 kB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3363, allocations: 159.9 MB / 1.225 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003156/0.3395, allocations: 1.561 MB / 1.227 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.3407, allocations: 0.5688 MB / 1.227 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.803e-05/0.3408, allocations: 4 kB / 1.227 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.341, allocations: 11.86 kB / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.363e-05/0.3411, allocations: 15.81 kB / 1.227 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.3416, allocations: 95.7 kB / 1.227 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.3418, allocations: 103.6 kB / 1.227 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.342, allocations: 28.2 kB / 1.227 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.3421, allocations: 39.91 kB / 1.228 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3422, allocations: 47.75 kB / 1.228 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.3423, allocations: 8 kB / 1.228 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.3424, allocations: 91.84 kB / 1.228 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.872e-05/0.3425, allocations: 15.92 kB / 1.228 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.3426, allocations: 39.8 kB / 1.228 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.3429, allocations: 147.4 kB / 1.228 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3429, allocations: 4 kB / 1.228 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3429, allocations: 0 / 1.228 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.3429, allocations: 0 / 1.228 GB, free: 6.941 MB / 0.9825 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.0008935/0.3438, allocations: 448.6 kB / 1.228 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3438, allocations: 12.03 kB / 1.228 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/0.3439, allocations: 34.75 kB / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.344, allocations: 20.78 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.3442, allocations: 194.3 kB / 1.229 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3442, allocations: 4.375 kB / 1.229 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.3442, allocations: 8.375 kB / 1.229 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.3445, allocations: 109.7 kB / 1.229 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3445, allocations: 3.984 kB / 1.229 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.3446, allocations: 4 kB / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.3446, allocations: 4 kB / 1.229 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004051/0.345, allocations: 87.91 kB / 1.229 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.3457, allocations: 348.6 kB / 1.229 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.346, allocations: 90.5 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3462, allocations: 64.88 kB / 1.229 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.3462, allocations: 0 / 1.229 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.3466, allocations: 111.3 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.813e-06/0.3466, allocations: 0 / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0006941/0.3473, allocations: 213.3 kB / 1.23 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.3474, allocations: 55.41 kB / 1.23 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3475, allocations: 139.4 kB / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.3475, allocations: 29.7 kB / 1.23 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.3476, allocations: 96.09 kB / 1.23 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/0.3476, allocations: 39.8 kB / 1.23 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.102e-05/0.3477, allocations: 29.64 kB / 1.23 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3479, allocations: 330.8 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.3481, allocations: 51.95 kB / 1.23 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3483, allocations: 55.95 kB / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.3486, allocations: 154.6 kB / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3487, allocations: 0 / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004779/0.3491, allocations: 199.2 kB / 1.231 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.3492, allocations: 31.58 kB / 1.231 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3492, allocations: 4 kB / 1.231 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3492, allocations: 0 / 1.231 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3494, allocations: 27.97 kB / 1.231 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3494, allocations: 80 / 1.231 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3495, allocations: 11.98 kB / 1.231 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.3496, allocations: 15.92 kB / 1.231 GB, free: 3.719 MB / 0.9825 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.0001224/0.3497, allocations: 126.3 kB / 1.231 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.3497, allocations: 11.91 kB / 1.231 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.3498, allocations: 8.719 kB / 1.231 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.3498, allocations: 8 kB / 1.231 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3498, allocations: 0 / 1.231 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3498, allocations: 0 / 1.231 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.35, allocations: 205.5 kB / 1.231 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.35, allocations: 0 / 1.231 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.3502, allocations: 23.91 kB / 1.231 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3502, allocations: 0 / 1.231 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3502, allocations: 3.938 kB / 1.231 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.3502, allocations: 4 kB / 1.231 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3502, allocations: 0 / 1.231 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004535/0.3507, allocations: 185.3 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.3507, allocations: 85.02 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.3508, allocations: 11.94 kB / 1.231 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3509, allocations: 15.97 kB / 1.231 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.351, allocations: 15.98 kB / 1.231 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.351, allocations: 4 kB / 1.231 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.331e-05/0.3511, allocations: 112.6 kB / 1.232 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3511, allocations: 0 / 1.232 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002659/0.3514, allocations: 35.94 kB / 1.232 GB, free: 2.777 MB / 0.9825 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.0008183/0.3522, allocations: 0.7295 MB / 1.232 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004697/0.3527, allocations: 179.3 kB / 1.232 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3527, allocations: 0 / 1.232 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.3529, allocations: 71.89 kB / 1.233 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.3532, allocations: 11.98 kB / 1.233 GB, free: 1.75 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.3554, allocations: 1.714 MB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3557, allocations: 0.7002 MB / 1.235 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.313e-05/0.3558, allocations: 19.91 kB / 1.235 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.16e-05/0.3559, allocations: 27.42 kB / 1.235 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.3559, allocations: 4.281 kB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.374, allocations: 2.752 MB / 1.238 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.743, allocations: 15.33 kB / 1.238 GB, free: 12.51 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches