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.007214/0.007214, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001647/0.001647, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.207/2.207, allocations: 390.3 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 66.73 kB / 0.9504 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2502, allocations: 140.4 MB / 1.087 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002567/0.2528, allocations: 1.552 MB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009395/0.2538, allocations: 0.574 MB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.193e-05/0.2538, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.2539, allocations: 11.92 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.272e-05/0.254, allocations: 15.81 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.2544, allocations: 95.77 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.2546, allocations: 103.6 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.2547, allocations: 20.2 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.2548, allocations: 55.78 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.863e-05/0.2549, allocations: 47.81 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.255, allocations: 8 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.2551, allocations: 83.91 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.2552, allocations: 23.86 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.2552, allocations: 35.8 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.2555, allocations: 143.8 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.2555, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2555, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.2555, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 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.000885/0.2564, allocations: 460.6 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.2564, allocations: 11.97 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.132e-05/0.2565, allocations: 34.75 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.8e-05/0.2565, allocations: 16.88 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.2568, allocations: 194 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.2568, allocations: 4.375 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.2568, allocations: 4.375 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.2572, allocations: 109.7 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2572, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.2572, allocations: 4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.2572, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.2576, allocations: 95.84 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.2582, allocations: 348.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.2585, allocations: 90.52 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.2587, allocations: 56.88 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.2587, allocations: 8 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00033/0.2591, allocations: 111.3 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.694e-06/0.2591, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0006321/0.2597, allocations: 209.4 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2598, allocations: 59.39 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.2599, allocations: 139.2 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.2599, allocations: 25.7 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.743e-05/0.26, allocations: 104.1 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.26, allocations: 27.8 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.2601, allocations: 29.7 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.2602, allocations: 330.8 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.2604, allocations: 55.95 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.2605, allocations: 56 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.2609, allocations: 146.4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2609, allocations: 4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004468/0.2614, allocations: 195.2 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.2614, allocations: 29.7 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2614, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2614, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.2616, allocations: 23.97 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.2616, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.2617, allocations: 27.88 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.2618, allocations: 7.938 kB / 1.093 GB, free: 12.04 MB / 0.8575 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.0001016/0.2619, allocations: 121.8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.963e-05/0.2619, allocations: 7.953 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.144e-05/0.2619, allocations: 12.72 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/0.262, allocations: 8 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.262, allocations: 3.984 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.262, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.2621, allocations: 201.5 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2622, allocations: 4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.2623, allocations: 23.91 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2623, allocations: 480 / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2623, allocations: 0 / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2623, allocations: 0 / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2623, allocations: 0 / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.2627, allocations: 196.8 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.2628, allocations: 85.06 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.2628, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.263, allocations: 19.97 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.263, allocations: 11.98 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.263, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.385e-05/0.2631, allocations: 113.4 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2631, allocations: 8 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002447/0.2634, allocations: 39.94 kB / 1.094 GB, free: 11.1 MB / 0.8575 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.0007353/0.2641, allocations: 0.7411 MB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004491/0.2646, allocations: 183.2 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.2646, allocations: 0 / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.2648, allocations: 59.95 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.265, allocations: 17.7 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.2672, allocations: 1.711 MB / 1.096 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.2674, allocations: 0.7041 MB / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.076e-05/0.2675, allocations: 11.98 kB / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.2676, allocations: 35.36 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.2676, allocations: 0 / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.2865, allocations: 2.748 MB / 1.1 GB, free: 4.832 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/7.228, allocations: 7.062 kB / 1.1 GB, free: 4.828 MB / 0.8575 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