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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.004109/0.004109, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001207/0.001207, allocations: 201.5 kB / 16.68 MB, free: 5.93 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.82/2.82, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.58 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2795, allocations: 162.2 MB / 1.241 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002719/0.2822, allocations: 1.557 MB / 1.243 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009442/0.2832, allocations: 0.5703 MB / 1.243 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.69e-05/0.2833, allocations: 3.938 kB / 1.243 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 8.357e-05/0.2834, allocations: 3.938 kB / 1.244 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.2834, allocations: 19.8 kB / 1.244 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.2838, allocations: 95.77 kB / 1.244 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000149/0.2839, allocations: 103.6 kB / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.984e-05/0.2841, allocations: 20.2 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.2842, allocations: 47.78 kB / 1.244 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.97e-05/0.2843, allocations: 51.81 kB / 1.244 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.2843, allocations: 8 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.2845, allocations: 79.92 kB / 1.244 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.758e-05/0.2845, allocations: 23.91 kB / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.849e-05/0.2846, allocations: 39.73 kB / 1.244 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.2848, allocations: 139.8 kB / 1.244 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2848, allocations: 3.938 kB / 1.244 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.297e-06/0.2848, allocations: 3.984 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2848, allocations: 0 / 1.244 GB, free: 6.543 MB / 0.9669 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.0008076/0.2857, allocations: 456.6 kB / 1.245 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.2857, allocations: 8.031 kB / 1.245 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.948e-05/0.2857, allocations: 46.73 kB / 1.245 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.2858, allocations: 12.84 kB / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.286, allocations: 192.2 kB / 1.245 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.286, allocations: 4.375 kB / 1.245 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.286, allocations: 4.375 kB / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.2863, allocations: 109.7 kB / 1.245 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.2864, allocations: 0 / 1.245 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.2864, allocations: 3.984 kB / 1.245 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.2864, allocations: 4 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003622/0.2868, allocations: 87.92 kB / 1.245 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.2874, allocations: 352.6 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.2878, allocations: 86.52 kB / 1.245 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.288, allocations: 56.88 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.288, allocations: 8 kB / 1.245 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003126/0.2883, allocations: 115.2 kB / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 3.727e-06/0.2883, allocations: 112 / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0006886/0.289, allocations: 221.4 kB / 1.246 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.2891, allocations: 55.39 kB / 1.246 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2892, allocations: 135.9 kB / 1.246 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.2892, allocations: 33.7 kB / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.458e-05/0.2893, allocations: 104 kB / 1.246 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.2894, allocations: 23.84 kB / 1.246 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.2894, allocations: 21.72 kB / 1.246 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2896, allocations: 326.8 kB / 1.246 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.2898, allocations: 59.95 kB / 1.247 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.29, allocations: 55.95 kB / 1.247 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.2904, allocations: 138.5 kB / 1.247 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2904, allocations: 7.938 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005053/0.2909, allocations: 199.2 kB / 1.247 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.291, allocations: 33.7 kB / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.291, allocations: 3.984 kB / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.291, allocations: 0 / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.2911, allocations: 19.92 kB / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.2912, allocations: 0 / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.2913, allocations: 23.92 kB / 1.247 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.2913, allocations: 11.92 kB / 1.247 GB, free: 3.324 MB / 0.9669 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.0001094/0.2915, allocations: 122.3 kB / 1.247 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.2915, allocations: 11.91 kB / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.2915, allocations: 16.7 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.2915, allocations: 4 kB / 1.247 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2916, allocations: 0 / 1.247 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2916, allocations: 0 / 1.247 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.2918, allocations: 206 kB / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2918, allocations: 0 / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.2919, allocations: 11.98 kB / 1.247 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2919, allocations: 4 kB / 1.247 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.2919, allocations: 4 kB / 1.247 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.2919, allocations: 7.938 kB / 1.247 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2919, allocations: 3.984 kB / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.2924, allocations: 180.9 kB / 1.248 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.2925, allocations: 93.03 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.2925, allocations: 0 / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2927, allocations: 11.98 kB / 1.248 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.2927, allocations: 15.98 kB / 1.248 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2927, allocations: 3.984 kB / 1.248 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.333e-05/0.2928, allocations: 120.9 kB / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2928, allocations: 0 / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002429/0.2931, allocations: 35.94 kB / 1.248 GB, free: 2.391 MB / 0.9669 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.0008575/0.294, allocations: 0.7411 MB / 1.249 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005043/0.2945, allocations: 183.2 kB / 1.249 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2945, allocations: 0 / 1.249 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.2947, allocations: 63.94 kB / 1.249 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.2949, allocations: 12 kB / 1.249 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.2975, allocations: 1.723 MB / 1.25 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.2978, allocations: 0.7041 MB / 1.251 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.899e-05/0.2979, allocations: 7.984 kB / 1.251 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.298, allocations: 31.42 kB / 1.251 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.298, allocations: 0 / 1.251 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.3212, allocations: 2.765 MB / 1.254 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.08, allocations: 12.2 kB / 1.254 GB, free: 12.1 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 400 --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