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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001333/0.001333, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001463/0.001463, allocations: 194.1 kB / 16.14 MB, free: 6.719 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.146/1.146, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.05/2.05, allocations: 390.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5072/0.5084, allocations: 140.4 MB / 0.949 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.00226/0.5107, allocations: 1.6 MB / 0.9506 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007868/0.5115, allocations: 0.5929 MB / 0.9512 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.504e-05/0.5116, allocations: 0 / 0.9512 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.063e-05/0.5117, allocations: 9.297 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.764e-05/0.5118, allocations: 13.23 kB / 0.9512 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.512, allocations: 76.47 kB / 0.9513 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.449e-05/0.5121, allocations: 96.77 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.741e-05/0.5122, allocations: 17.84 kB / 0.9514 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.107e-05/0.5123, allocations: 41.77 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.902e-05/0.5124, allocations: 49.45 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.5124, allocations: 3.906 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.5125, allocations: 57.86 kB / 0.9515 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.898e-05/0.5126, allocations: 12.52 kB / 0.9515 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.5126, allocations: 44.94 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.5128, allocations: 132.4 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.5128, allocations: 1.812 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5128, allocations: 0 / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.5128, allocations: 0 / 0.9517 GB, free: 7.035 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.0006013/0.5134, allocations: 452.2 kB / 0.9521 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.5134, allocations: 13.19 kB / 0.9522 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.652e-05/0.5135, allocations: 38.12 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.5135, allocations: 8.531 kB / 0.9522 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.5136, allocations: 202.5 kB / 0.9524 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.5136, allocations: 3.188 kB / 0.9524 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.5137, allocations: 12.3 kB / 0.9524 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.5139, allocations: 106.7 kB / 0.9525 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.5139, allocations: 0 / 0.9525 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.514, allocations: 5.406 kB / 0.9525 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.514, allocations: 3.781 kB / 0.9525 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.5143, allocations: 89.53 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004888/0.5148, allocations: 352.9 kB / 0.9529 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.515, allocations: 93.91 kB / 0.953 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.5152, allocations: 59.44 kB / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.5152, allocations: 1.625 kB / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.5155, allocations: 114.1 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.5155, allocations: 0 / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005502/0.516, allocations: 206.6 kB / 0.9534 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.5161, allocations: 56.53 kB / 0.9534 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.527e-05/0.5161, allocations: 148.3 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.5162, allocations: 31.02 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.5162, allocations: 99.72 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.5162, allocations: 24.53 kB / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.5163, allocations: 25.95 kB / 0.9538 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.652e-05/0.5163, allocations: 329.2 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.5165, allocations: 60.61 kB / 0.9541 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.5167, allocations: 56.3 kB / 0.9542 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.517, allocations: 140.4 kB / 0.9543 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.517, allocations: 4.375 kB / 0.9543 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003917/0.5174, allocations: 212.1 kB / 0.9545 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.5174, allocations: 31.14 kB / 0.9546 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5174, allocations: 1.375 kB / 0.9546 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.5174, allocations: 3.938 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.5176, allocations: 20.5 kB / 0.9546 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.5176, allocations: 1.25 kB / 0.9546 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.5177, allocations: 16.67 kB / 0.9546 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.5177, allocations: 10.72 kB / 0.9546 GB, free: 4.523 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 6.79e-05/0.5178, allocations: 124.1 kB / 0.9547 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.5178, allocations: 8.312 kB / 0.9547 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.5178, allocations: 11.72 kB / 0.9547 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.5179, allocations: 3.938 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.5179, allocations: 0 / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.5179, allocations: 3.984 kB / 0.9548 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.518, allocations: 196.5 kB / 0.9549 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.518, allocations: 4 kB / 0.9549 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.5181, allocations: 23.06 kB / 0.955 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.5181, allocations: 0 / 0.955 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.5181, allocations: 5.156 kB / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5181, allocations: 0.9375 kB / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5181, allocations: 0 / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.5185, allocations: 182 kB / 0.9551 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.002e-05/0.5185, allocations: 87.33 kB / 0.9552 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.5186, allocations: 1.219 kB / 0.9552 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.5187, allocations: 28.86 kB / 0.9553 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.5187, allocations: 9.734 kB / 0.9553 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.5188, allocations: 1.094 kB / 0.9553 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.462e-05/0.5188, allocations: 112.8 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5188, allocations: 1.312 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002175/0.519, allocations: 42.97 kB / 0.9554 GB, free: 3.789 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.000536/0.5196, allocations: 0.7257 MB / 0.9561 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003908/0.52, allocations: 185.1 kB / 0.9563 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.52, allocations: 3.938 kB / 0.9563 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.5202, allocations: 70.36 kB / 0.9564 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.5204, allocations: 18.11 kB / 0.9564 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.5221, allocations: 1.716 MB / 0.9581 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.85e-05/0.5222, allocations: 0.7031 MB / 0.9588 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.605e-05/0.5223, allocations: 15.44 kB / 0.9588 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.5223, allocations: 30.77 kB / 0.9588 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.5223, allocations: 0 / 0.9588 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.5484, allocations: 2.474 MB / 0.9612 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.5486, allocations: 203.7 kB / 0.9614 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.119, allocations: 1.094 kB / 0.9614 GB, free: 15.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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