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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00123/0.00123, allocations: 108 kB / 15.61 MB, free: 152 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.001253/0.001253, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.194/1.194, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.427/2.427, allocations: 469.4 MB / 0.742 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001224, allocations: 65.48 kB / 0.9082 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2335, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002655/0.2362, allocations: 1.559 MB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008876/0.2371, allocations: 0.5705 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.101e-05/0.2372, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.064e-05/0.2373, allocations: 7.922 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.737e-05/0.2374, allocations: 19.8 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.2378, allocations: 95.75 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.2379, allocations: 99.64 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.238, allocations: 16.23 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.2382, allocations: 43.83 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.338e-05/0.2383, allocations: 55.77 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.2383, allocations: 8 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.82e-05/0.2384, allocations: 55.95 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.2384, allocations: 23.86 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.126e-05/0.2385, allocations: 39.78 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.2387, allocations: 139.8 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2387, allocations: 0 / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.163e-06/0.2387, allocations: 0 / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2387, allocations: 0 / 1.066 GB, free: 11.83 MB / 0.8262 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.0006845/0.2394, allocations: 452.8 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.2394, allocations: 12.03 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.758e-05/0.2395, allocations: 38.75 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.2395, allocations: 16.75 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.2397, allocations: 192.2 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.2397, allocations: 384 / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.2397, allocations: 4.375 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.24, allocations: 121.6 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.24, allocations: 0 / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.24, allocations: 3.984 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.2401, allocations: 4 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.2404, allocations: 87.91 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005686/0.241, allocations: 348.6 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000293/0.2413, allocations: 94.5 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.2414, allocations: 64.88 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.2415, allocations: 0 / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.2418, allocations: 119.3 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.2418, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0006049/0.2424, allocations: 197.5 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.2424, allocations: 59.41 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.584e-05/0.2425, allocations: 143.1 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.2426, allocations: 25.98 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.2426, allocations: 104 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.2426, allocations: 23.61 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.2427, allocations: 33.64 kB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.105e-05/0.2428, allocations: 330.8 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.243, allocations: 55.95 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.2431, allocations: 55.95 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.2435, allocations: 142.5 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2435, allocations: 4 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004309/0.2439, allocations: 203.2 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.244, allocations: 33.7 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.244, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.244, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.2442, allocations: 23.97 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.2442, allocations: 4 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.2443, allocations: 19.92 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.2443, allocations: 3.938 kB / 1.069 GB, free: 8.613 MB / 0.8262 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.909e-05/0.2444, allocations: 121.8 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.2444, allocations: 7.906 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.742e-05/0.2445, allocations: 12.72 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.2445, allocations: 4 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2445, allocations: 0 / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2445, allocations: 11.94 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.2447, allocations: 197.5 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2447, allocations: 0 / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2448, allocations: 19.97 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2448, allocations: 0 / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.2448, allocations: 4 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2448, allocations: 4 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2448, allocations: 0 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.2452, allocations: 192.8 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.2453, allocations: 85.02 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.2453, allocations: 0 / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.2454, allocations: 16.16 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.2455, allocations: 11.98 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.2455, allocations: 7.938 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.373e-05/0.2456, allocations: 121.2 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2456, allocations: 0 / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002226/0.2458, allocations: 40 kB / 1.07 GB, free: 7.68 MB / 0.8262 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.0006523/0.2465, allocations: 0.7299 MB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004258/0.2469, allocations: 187.2 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2469, allocations: 0 / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.2471, allocations: 67.94 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.2473, allocations: 15.98 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.2495, allocations: 1.691 MB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.2497, allocations: 0.7039 MB / 1.073 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.686e-05/0.2498, allocations: 19.97 kB / 1.073 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.716e-05/0.2499, allocations: 31.42 kB / 1.073 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.2499, allocations: 0 / 1.073 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.2677, allocations: 2.72 MB / 1.076 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.545/6.813, allocations: 7.922 kB / 1.076 GB, free: 1.441 MB / 0.8262 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