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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007972/0.007972, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001958/0.001958, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.796/2.796, allocations: 469.4 MB / 0.7421 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2677, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002507/0.2702, allocations: 1.564 MB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009799/0.2712, allocations: 0.5765 MB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.051e-05/0.2713, allocations: 3.938 kB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.2714, allocations: 11.92 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.464e-05/0.2715, allocations: 15.81 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.2719, allocations: 87.77 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.2721, allocations: 107.6 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2722, allocations: 20.23 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.2723, allocations: 43.84 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.051e-05/0.2724, allocations: 51.75 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.2724, allocations: 4 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.2726, allocations: 91.91 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.747e-05/0.2726, allocations: 15.92 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.586e-05/0.2727, allocations: 35.8 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.2729, allocations: 147.4 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2729, allocations: 4 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2729, allocations: 0 / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.2729, allocations: 4 kB / 1.222 GB, free: 11.93 MB / 0.9825 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.000774/0.2737, allocations: 448.6 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.2738, allocations: 8.031 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.364e-05/0.2738, allocations: 34.75 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.2739, allocations: 20.83 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.274, allocations: 196.2 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.274, allocations: 384 / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.2741, allocations: 12.31 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.2744, allocations: 109.7 kB / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.2744, allocations: 0 / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.2744, allocations: 7.984 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2744, allocations: 4 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.2748, allocations: 87.91 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.2754, allocations: 352.6 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.2757, allocations: 86.52 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.2759, allocations: 60.88 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.2759, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003129/0.2762, allocations: 115.3 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.2762, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0006666/0.2769, allocations: 209.4 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.277, allocations: 63.45 kB / 1.224 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2771, allocations: 135.4 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2771, allocations: 29.7 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.2772, allocations: 100.1 kB / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.2772, allocations: 31.75 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.528e-05/0.2773, allocations: 25.7 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2774, allocations: 326.8 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.2776, allocations: 55.95 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.2778, allocations: 59.89 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.2782, allocations: 146.5 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2782, allocations: 4.109 kB / 1.225 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004632/0.2787, allocations: 207.1 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.374e-05/0.2787, allocations: 34.17 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2788, allocations: 0 / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.2788, allocations: 4 kB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.2789, allocations: 19.97 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2789, allocations: 0 / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2791, allocations: 19.92 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.2791, allocations: 7.938 kB / 1.225 GB, free: 8.707 MB / 0.9825 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 9.505e-05/0.2792, allocations: 134.2 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.2792, allocations: 11.91 kB / 1.225 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.2793, allocations: 12.72 kB / 1.225 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.2793, allocations: 4 kB / 1.225 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.2793, allocations: 3.984 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2793, allocations: 4 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.2795, allocations: 193.5 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2795, allocations: 0 / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.2796, allocations: 23.97 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2796, allocations: 0 / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.2796, allocations: 4 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2796, allocations: 0 / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2797, allocations: 4 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004394/0.2801, allocations: 180.9 kB / 1.226 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.2802, allocations: 89.02 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.2802, allocations: 3.938 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2803, allocations: 23.97 kB / 1.226 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.2804, allocations: 11.98 kB / 1.226 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.2804, allocations: 4 kB / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.2e-05/0.2805, allocations: 113.2 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2805, allocations: 0 / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002378/0.2807, allocations: 35.94 kB / 1.226 GB, free: 7.766 MB / 0.9825 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.0007567/0.2815, allocations: 0.7333 MB / 1.227 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004561/0.282, allocations: 183.2 kB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.282, allocations: 0 / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.2822, allocations: 67.95 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.2824, allocations: 14.17 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.2846, allocations: 1.722 MB / 1.229 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.2849, allocations: 0.6983 MB / 1.229 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.299e-05/0.2849, allocations: 11.98 kB / 1.229 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.2e-05/0.285, allocations: 31.42 kB / 1.229 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.285, allocations: 0 / 1.229 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.3035, allocations: 2.757 MB / 1.232 GB, free: 1.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.841, allocations: 23.8 kB / 1.232 GB, free: 1.48 MB / 0.9825 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