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.001632/0.001632, 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.001835/0.001835, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.963/1.963, allocations: 222.9 MB / 239.9 MB, free: 4.402 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.458/2.458, allocations: 390.2 MB / 0.6644 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 63.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7234/0.725, allocations: 140.4 MB / 0.9492 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002444/0.7275, allocations: 1.611 MB / 0.9508 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000758/0.7282, allocations: 0.5822 MB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.7283, allocations: 1.375 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.534e-05/0.7284, allocations: 3.938 kB / 0.9514 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.484e-05/0.7285, allocations: 18.59 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.7288, allocations: 75.36 kB / 0.9515 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.7289, allocations: 101 kB / 0.9516 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/0.729, allocations: 17.84 kB / 0.9516 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.651e-05/0.7291, allocations: 48.27 kB / 0.9516 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.7292, allocations: 45.58 kB / 0.9517 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.7292, allocations: 11.69 kB / 0.9517 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.966e-05/0.7293, allocations: 60.23 kB / 0.9517 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.447e-05/0.7294, allocations: 24.28 kB / 0.9518 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.7295, allocations: 45.25 kB / 0.9518 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.7296, allocations: 126 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.7296, allocations: 0 / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7297, allocations: 1.656 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.7297, allocations: 0 / 0.9519 GB, free: 7.02 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.0006592/0.7303, allocations: 460.4 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.7304, allocations: 9.125 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/0.7304, allocations: 41.3 kB / 0.9524 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.7305, allocations: 8.906 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.7306, allocations: 197.8 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.7306, allocations: 6.891 kB / 0.9526 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.7306, allocations: 3.406 kB / 0.9526 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.7309, allocations: 103.1 kB / 0.9527 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.7309, allocations: 4 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.7309, allocations: 0.9375 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.731, allocations: 8.453 kB / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.7313, allocations: 89.67 kB / 0.9528 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.7318, allocations: 353 kB / 0.9531 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.7321, allocations: 86.64 kB / 0.9532 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.7323, allocations: 58.66 kB / 0.9533 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.7323, allocations: 5.406 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003048/0.7326, allocations: 122.1 kB / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.7326, allocations: 0 / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0006066/0.7333, allocations: 210 kB / 0.9536 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.7333, allocations: 54.19 kB / 0.9537 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.7334, allocations: 143.6 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.7334, allocations: 30.95 kB / 0.9538 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.7335, allocations: 104.2 kB / 0.9539 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.7335, allocations: 23.94 kB / 0.9539 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.7336, allocations: 26.23 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.542e-05/0.7336, allocations: 325.5 kB / 0.9543 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.7338, allocations: 60.11 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.734, allocations: 52.8 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.7343, allocations: 155.8 kB / 0.9545 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7343, allocations: 0 / 0.9545 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004238/0.7347, allocations: 196.1 kB / 0.9547 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.7348, allocations: 35.3 kB / 0.9548 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.7348, allocations: 1.094 kB / 0.9548 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.7348, allocations: 0 / 0.9548 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.7349, allocations: 21.06 kB / 0.9548 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.735, allocations: 0 / 0.9548 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.7351, allocations: 21.98 kB / 0.9548 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.7351, allocations: 10.12 kB / 0.9548 GB, free: 4.512 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 7.103e-05/0.7352, allocations: 124.5 kB / 0.9549 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.7352, allocations: 8.156 kB / 0.9549 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.7353, allocations: 18.97 kB / 0.955 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.7353, allocations: 11.66 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.7353, allocations: 0.9375 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.7353, allocations: 0 / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.7354, allocations: 197.1 kB / 0.9552 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7354, allocations: 4 kB / 0.9552 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.7356, allocations: 22.47 kB / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.7356, allocations: 1 kB / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.7356, allocations: 1.031 kB / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.7356, allocations: 0 / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.7356, allocations: 1.094 kB / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003822/0.736, allocations: 193.2 kB / 0.9554 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.388e-05/0.736, allocations: 87.52 kB / 0.9555 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.736, allocations: 5.203 kB / 0.9555 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.7362, allocations: 12.11 kB / 0.9555 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.7362, allocations: 13.64 kB / 0.9555 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.7363, allocations: 2.25 kB / 0.9555 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.892e-05/0.7363, allocations: 112.3 kB / 0.9556 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7363, allocations: 4 kB / 0.9556 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002562/0.7366, allocations: 40.34 kB / 0.9556 GB, free: 3.766 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.0006127/0.7372, allocations: 0.7302 MB / 0.9563 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000446/0.7376, allocations: 189.4 kB / 0.9565 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.7377, allocations: 0 / 0.9565 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.7378, allocations: 62.86 kB / 0.9566 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.7381, allocations: 11.77 kB / 0.9566 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.7399, allocations: 1.729 MB / 0.9583 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/0.7401, allocations: 0.6992 MB / 0.959 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.626e-05/0.7402, allocations: 11.83 kB / 0.959 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.842e-05/0.7402, allocations: 35.3 kB / 0.959 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.7402, allocations: 5.562 kB / 0.959 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01204/0.7523, allocations: 2.544 MB / 0.9615 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.7525, allocations: 205.9 kB / 0.9617 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.039, allocations: 2.75 kB / 0.9617 GB, free: 15.23 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