Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_10_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.007563/0.007564, allocations: 98.64 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.001863/0.001863, allocations: 194 kB / 16.67 MB, free: 5.969 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437 MB / 0.7105 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 59.91 kB / 1.018 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3296, allocations: 151.6 MB / 1.166 GB, free: 7.492 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002646/0.3323, allocations: 1.54 MB / 1.168 GB, free: 5.934 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.3333, allocations: 0.5804 MB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.314e-05/0.3334, allocations: 0 / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.3336, allocations: 11.88 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.774e-05/0.3337, allocations: 19.8 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.3341, allocations: 95.77 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000148/0.3342, allocations: 103.6 kB / 1.168 GB, free: 5.121 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3344, allocations: 16.22 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.3345, allocations: 43.91 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.773e-05/0.3346, allocations: 55.75 kB / 1.169 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.3346, allocations: 8 kB / 1.169 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.3348, allocations: 87.84 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.788e-05/0.3348, allocations: 15.98 kB / 1.169 GB, free: 4.895 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.3349, allocations: 39.73 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.3351, allocations: 151.7 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3351, allocations: 0 / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3352, allocations: 0 / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3352, allocations: 0 / 1.169 GB, free: 4.707 MB / 0.92 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.0008249/0.336, allocations: 460.6 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.336, allocations: 8.031 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.711e-05/0.3361, allocations: 38.75 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.3361, allocations: 12.84 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.3363, allocations: 190.8 kB / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-06/0.3363, allocations: 4.375 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.3363, allocations: 4.375 kB / 1.17 GB, free: 3.906 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.3367, allocations: 117.6 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.3367, allocations: 0 / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.3367, allocations: 3.984 kB / 1.17 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.3367, allocations: 4 kB / 1.17 GB, free: 3.777 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.3371, allocations: 87.92 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006165/0.3377, allocations: 356.6 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.338, allocations: 90.5 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.3382, allocations: 56.89 kB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.3382, allocations: 0 / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.3386, allocations: 119.2 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 3.387e-06/0.3386, allocations: 0 / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0006501/0.3392, allocations: 213.4 kB / 1.171 GB, free: 2.793 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.3393, allocations: 55.47 kB / 1.171 GB, free: 2.727 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.3394, allocations: 133.8 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.3394, allocations: 33.69 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.3395, allocations: 108 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.3395, allocations: 23.84 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.3396, allocations: 25.7 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.958e-05/0.3397, allocations: 322.8 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.3399, allocations: 63.94 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.3401, allocations: 55.95 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.3405, allocations: 138.5 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3405, allocations: 0 / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004791/0.341, allocations: 211.2 kB / 1.172 GB, free: 1.578 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.341, allocations: 37.69 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.341, allocations: 0 / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.341, allocations: 0 / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3412, allocations: 15.98 kB / 1.172 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3412, allocations: 4 kB / 1.172 GB, free: 1.516 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.3414, allocations: 23.91 kB / 1.172 GB, free: 1.492 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.3414, allocations: 7.938 kB / 1.172 GB, free: 1.484 MB / 0.92 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 8.829e-05/0.3415, allocations: 113.8 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.3415, allocations: 11.91 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.3415, allocations: 20.7 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.3416, allocations: 4 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3416, allocations: 480 / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3416, allocations: 0 / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.3418, allocations: 201.5 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3418, allocations: 7.938 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.3419, allocations: 15.98 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3419, allocations: 7.922 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3419, allocations: 3.984 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3419, allocations: 0 / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3419, allocations: 0 / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/0.3425, allocations: 188.9 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.3425, allocations: 85.06 kB / 1.172 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.3425, allocations: 0 / 1.172 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.3427, allocations: 11.98 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.3427, allocations: 23.91 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3428, allocations: 4 kB / 1.172 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.13e-05/0.3428, allocations: 113 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3428, allocations: 0 / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002506/0.3431, allocations: 43.94 kB / 1.173 GB, free: 0.5508 MB / 0.92 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.000786/0.3439, allocations: 0.7394 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004738/0.3444, allocations: 187.3 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3444, allocations: 0 / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.3446, allocations: 63.89 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.3448, allocations: 15.86 kB / 1.174 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.3472, allocations: 1.706 MB / 1.175 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3475, allocations: 0.7002 MB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.84e-05/0.3476, allocations: 15.97 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.422e-05/0.3477, allocations: 27.44 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of SimCode: time 4.01e-07/0.3477, allocations: 0 / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.366, allocations: 2.766 MB / 1.179 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.051, allocations: 12.02 kB / 1.179 GB, free: 10.27 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches