Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_9_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.001073/0.001073, allocations: 108 kB / 15.6 MB, free: 132 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.001264/0.001264, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.197/1.197, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.125/2.125, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4961/0.4974, allocations: 140.4 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002045/0.4995, allocations: 1.542 MB / 0.9512 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006836/0.5002, allocations: 0.5819 MB / 0.9518 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.263e-05/0.5002, allocations: 1.156 kB / 0.9518 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.771e-05/0.5003, allocations: 17.2 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.162e-05/0.5004, allocations: 17.27 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.5007, allocations: 87.19 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.5008, allocations: 100.3 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.991e-05/0.5009, allocations: 22.89 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.864e-05/0.501, allocations: 44.03 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.918e-05/0.5011, allocations: 45.47 kB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.953e-05/0.5011, allocations: 7.438 kB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.229e-05/0.5012, allocations: 68.83 kB / 0.9522 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.829e-05/0.5012, allocations: 19.61 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.5013, allocations: 41.36 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.5014, allocations: 134.1 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5014, allocations: 0 / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5015, allocations: 1.188 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.5015, allocations: 3.938 kB / 0.9524 GB, free: 7.062 MB / 0.7169 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.0005965/0.5021, allocations: 464.2 kB / 0.9528 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.5021, allocations: 10.75 kB / 0.9528 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.599e-05/0.5021, allocations: 32.16 kB / 0.9528 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.5022, allocations: 10.28 kB / 0.9529 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.5023, allocations: 192.5 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.5023, allocations: 6.656 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.5023, allocations: 4.156 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.5026, allocations: 114.7 kB / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.5026, allocations: 0 / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.5026, allocations: 5.188 kB / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.5026, allocations: 3.969 kB / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.5029, allocations: 86.14 kB / 0.9533 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004854/0.5034, allocations: 349 kB / 0.9536 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.5037, allocations: 101.1 kB / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.5039, allocations: 52.33 kB / 0.9537 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.5039, allocations: 1.5 kB / 0.9537 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.5041, allocations: 120.5 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.5042, allocations: 1.469 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005682/0.5047, allocations: 205.7 kB / 0.954 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.175e-05/0.5048, allocations: 54.31 kB / 0.9541 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.423e-05/0.5048, allocations: 148.7 kB / 0.9542 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.5049, allocations: 27.19 kB / 0.9543 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.5049, allocations: 104.3 kB / 0.9544 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.5049, allocations: 26.64 kB / 0.9544 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.505, allocations: 30.11 kB / 0.9544 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.505, allocations: 321.7 kB / 0.9547 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.5052, allocations: 60.09 kB / 0.9548 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.5054, allocations: 65.52 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.5057, allocations: 139.7 kB / 0.955 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5057, allocations: 3.984 kB / 0.955 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000394/0.5061, allocations: 192.3 kB / 0.9552 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5061, allocations: 35.69 kB / 0.9552 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.5061, allocations: 3.938 kB / 0.9552 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.5061, allocations: 1.156 kB / 0.9552 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.5063, allocations: 16.39 kB / 0.9552 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.5063, allocations: 1.125 kB / 0.9552 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.5064, allocations: 29.03 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.5064, allocations: 6.188 kB / 0.9553 GB, free: 4.559 MB / 0.7169 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 5.72e-05/0.5065, allocations: 120.9 kB / 0.9554 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.5065, allocations: 11.41 kB / 0.9554 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.5066, allocations: 14.98 kB / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.5066, allocations: 3.594 kB / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5066, allocations: 1.125 kB / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.5066, allocations: 0 / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.5067, allocations: 208.8 kB / 0.9556 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.5067, allocations: 4 kB / 0.9556 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.5068, allocations: 14.83 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5068, allocations: 1.281 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.5068, allocations: 3.984 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5068, allocations: 5.031 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.5068, allocations: 0 / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.5072, allocations: 186.6 kB / 0.9558 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.955e-05/0.5072, allocations: 87.55 kB / 0.9559 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.5073, allocations: 1.312 kB / 0.9559 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.5074, allocations: 11.39 kB / 0.9559 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.5074, allocations: 13.86 kB / 0.9559 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.5075, allocations: 5.516 kB / 0.9559 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.352e-05/0.5075, allocations: 113.3 kB / 0.956 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5075, allocations: 4 kB / 0.956 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002124/0.5077, allocations: 40.72 kB / 0.9561 GB, free: 3.82 MB / 0.7169 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.0005303/0.5083, allocations: 0.7366 MB / 0.9568 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004038/0.5087, allocations: 188 kB / 0.957 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.5087, allocations: 0 / 0.957 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.5089, allocations: 67.09 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.5091, allocations: 12.16 kB / 0.957 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.5108, allocations: 1.712 MB / 0.9587 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.909e-05/0.5109, allocations: 0.6986 MB / 0.9594 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.045e-05/0.511, allocations: 11.86 kB / 0.9594 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.511, allocations: 27.31 kB / 0.9594 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.511, allocations: 1.062 kB / 0.9594 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.5289, allocations: 2.711 MB / 0.9621 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.624/7.152, allocations: 5.797 kB / 0.9621 GB, free: 15.39 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches