Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_9_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.00119/0.00119, 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.001232/0.001232, allocations: 193.3 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.2/1.2, 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 9.1.3-maint.9.1.x/package.mo): time 2.099/2.099, allocations: 390.3 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 71.89 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4801/0.4813, allocations: 140.3 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.001984/0.4833, allocations: 1.548 MB / 0.9512 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006633/0.484, allocations: 0.5824 MB / 0.9518 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.484, allocations: 5.25 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.901e-05/0.4841, allocations: 7.922 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.209e-05/0.4842, allocations: 14.69 kB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.4845, allocations: 90.36 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.4846, allocations: 100.7 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.487e-05/0.4847, allocations: 25.17 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.067e-05/0.4848, allocations: 46.22 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.98e-05/0.4849, allocations: 49.66 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.4849, allocations: 6.375 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.717e-05/0.485, allocations: 56.41 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.808e-05/0.485, allocations: 23.59 kB / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.887e-05/0.4851, allocations: 41.61 kB / 0.9522 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.4852, allocations: 138.2 kB / 0.9524 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.4852, allocations: 0 / 0.9524 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4852, allocations: 1.344 kB / 0.9524 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.4852, allocations: 0 / 0.9524 GB, free: 7.039 MB / 0.7169 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.0005867/0.4858, allocations: 451.8 kB / 0.9528 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.4859, allocations: 10.31 kB / 0.9528 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.423e-05/0.4859, allocations: 40.02 kB / 0.9528 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.3e-05/0.4859, allocations: 10.06 kB / 0.9528 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.4861, allocations: 200.8 kB / 0.953 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-06/0.4861, allocations: 2.875 kB / 0.953 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.4861, allocations: 4.75 kB / 0.953 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.4863, allocations: 106.4 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.4864, allocations: 1.062 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.4864, allocations: 4 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.4864, allocations: 4.5 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.4867, allocations: 89.67 kB / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.4872, allocations: 360.8 kB / 0.9536 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.4875, allocations: 90.64 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.4876, allocations: 59.31 kB / 0.9537 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.4876, allocations: 1.5 kB / 0.9537 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.4879, allocations: 117.3 kB / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.4879, allocations: 0 / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005571/0.4885, allocations: 206.8 kB / 0.954 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.82e-05/0.4885, allocations: 52.47 kB / 0.9541 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.325e-05/0.4886, allocations: 144.9 kB / 0.9542 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.4886, allocations: 34.86 kB / 0.9543 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.4886, allocations: 104.3 kB / 0.9544 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.4887, allocations: 32.14 kB / 0.9544 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.4887, allocations: 21.28 kB / 0.9544 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.575e-05/0.4887, allocations: 325.9 kB / 0.9547 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.4889, allocations: 55.73 kB / 0.9548 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.4891, allocations: 61.75 kB / 0.9548 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.4894, allocations: 138.8 kB / 0.955 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.4894, allocations: 1.156 kB / 0.955 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003836/0.4898, allocations: 199.5 kB / 0.9552 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4898, allocations: 45.41 kB / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4898, allocations: 0 / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.4898, allocations: 0.9688 kB / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.49, allocations: 16.89 kB / 0.9552 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.49, allocations: 0 / 0.9552 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.4901, allocations: 17.45 kB / 0.9552 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.4901, allocations: 14.52 kB / 0.9553 GB, free: 4.535 MB / 0.7169 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 5.943e-05/0.4902, allocations: 129.4 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.4902, allocations: 7.625 kB / 0.9554 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.405e-05/0.4902, allocations: 19.14 kB / 0.9554 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4903, allocations: 3.406 kB / 0.9554 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4903, allocations: 5 kB / 0.9554 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.4903, allocations: 0 / 0.9554 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.4904, allocations: 204.4 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4904, allocations: 0 / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.4905, allocations: 14.8 kB / 0.9556 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4905, allocations: 1 kB / 0.9556 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.4905, allocations: 5.344 kB / 0.9556 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4905, allocations: 3.984 kB / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4905, allocations: 1.312 kB / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.4909, allocations: 185.2 kB / 0.9558 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.045e-05/0.4909, allocations: 87.61 kB / 0.9559 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.4909, allocations: 5.406 kB / 0.9559 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.4911, allocations: 15.39 kB / 0.9559 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.4911, allocations: 14.48 kB / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.4911, allocations: 5.359 kB / 0.9559 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.252e-05/0.4912, allocations: 109.2 kB / 0.956 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4912, allocations: 1.406 kB / 0.956 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002104/0.4914, allocations: 40.53 kB / 0.9561 GB, free: 3.793 MB / 0.7169 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.0005261/0.4919, allocations: 0.7323 MB / 0.9568 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003939/0.4923, allocations: 192.7 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.4923, allocations: 0 / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.4925, allocations: 65.62 kB / 0.957 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.4927, allocations: 11.72 kB / 0.957 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.4944, allocations: 1.703 MB / 0.9587 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.804e-05/0.4945, allocations: 0.6995 MB / 0.9594 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.857e-05/0.4946, allocations: 10.67 kB / 0.9594 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.4946, allocations: 31.98 kB / 0.9594 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.4946, allocations: 0 / 0.9594 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.5113, allocations: 2.711 MB / 0.9621 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.691/7.202, allocations: 10.95 kB / 0.9621 GB, free: 15.37 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches