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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001387/0.001387, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001475/0.001475, allocations: 194.2 kB / 16.14 MB, free: 6.645 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.204/1.204, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.267/2.267, allocations: 437 MB / 0.71 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4816, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002358/0.484, allocations: 1.601 MB / 1.018 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008467/0.4848, allocations: 0.5999 MB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.38e-05/0.4849, allocations: 4 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.709e-05/0.485, allocations: 11.94 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.149e-05/0.4851, allocations: 15.84 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.4854, allocations: 71.86 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.4855, allocations: 91.64 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.346e-05/0.4856, allocations: 16.23 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.4857, allocations: 39.84 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.843e-05/0.4858, allocations: 51.75 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.4858, allocations: 4 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.884e-05/0.4859, allocations: 55.95 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.4859, allocations: 15.92 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.373e-05/0.486, allocations: 39.78 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.4862, allocations: 137.8 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4862, allocations: 8 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.62e-07/0.4862, allocations: 0 / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.4862, allocations: 0 / 1.019 GB, free: 8 kB / 0.7637 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.0007157/0.4869, allocations: 444.8 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.487, allocations: 8.031 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.436e-05/0.487, allocations: 42.73 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.487, allocations: 8.844 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.4872, allocations: 188.1 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.4872, allocations: 16.36 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.4872, allocations: 4.375 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.4875, allocations: 109.7 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.4876, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.4876, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.4876, allocations: 7.984 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.4879, allocations: 87.92 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005917/0.4885, allocations: 356.5 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.4888, allocations: 94.52 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.489, allocations: 52.88 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.489, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.4893, allocations: 107.3 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.4893, allocations: 7.938 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0005877/0.4899, allocations: 209.4 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.4899, allocations: 55.47 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.49, allocations: 139.7 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.4901, allocations: 33.64 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.4901, allocations: 107.9 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.4902, allocations: 23.66 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.4902, allocations: 29.7 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.4903, allocations: 322.8 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.4905, allocations: 51.95 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.4907, allocations: 59.95 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.491, allocations: 150.5 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4911, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000436/0.4915, allocations: 203.1 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.4915, allocations: 33.7 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.4915, allocations: 4 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.736e-06/0.4916, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4917, allocations: 19.97 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4917, allocations: 0 / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.4919, allocations: 19.98 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.4919, allocations: 3.938 kB / 1.022 GB, free: 12.8 MB / 0.7794 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.308e-05/0.492, allocations: 126.3 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.492, allocations: 11.91 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.492, allocations: 12.72 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.492, allocations: 7.984 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.492, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.4921, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.4922, allocations: 209.3 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4922, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.4923, allocations: 15.97 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4924, allocations: 480 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4924, allocations: 8 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4924, allocations: 4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4924, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.4928, allocations: 184.8 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.763e-05/0.4928, allocations: 89.02 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.4929, allocations: 3.984 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.493, allocations: 15.98 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.4931, allocations: 15.98 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.4931, allocations: 3.984 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.61e-05/0.4931, allocations: 108.9 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4931, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002217/0.4934, allocations: 36 kB / 1.023 GB, free: 11.87 MB / 0.7794 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.0006921/0.4941, allocations: 0.7333 MB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004229/0.4945, allocations: 183.5 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4945, allocations: 4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.4947, allocations: 67.88 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.4949, allocations: 15.92 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.497, allocations: 1.733 MB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.4972, allocations: 0.6968 MB / 1.026 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.149e-05/0.4973, allocations: 11.98 kB / 1.026 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.4974, allocations: 31.42 kB / 1.026 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.4974, allocations: 3.938 kB / 1.026 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6807/1.178, allocations: 2.489 MB / 1.029 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/1.178, allocations: 199.3 kB / 1.029 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.515/2.694, allocations: 0 / 1.029 GB, free: 5.594 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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