Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 105.3 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.212/3.212, allocations: 0.49 GB / 0.7916 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 65.72 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3865, allocations: 176.1 MB / 1.321 GB, free: 3.352 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003216/0.3897, allocations: 1.578 MB / 1.322 GB, free: 1.766 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.3911, allocations: 0.6505 MB / 1.323 GB, free: 1.109 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.73e-05/0.3911, allocations: 0 / 1.323 GB, free: 1.109 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.3913, allocations: 15.86 kB / 1.323 GB, free: 1.094 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.68e-05/0.3913, allocations: 15.81 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.3918, allocations: 107.7 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.392, allocations: 99.62 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.3921, allocations: 12.23 kB / 1.323 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.3923, allocations: 63.75 kB / 1.323 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.569e-05/0.3924, allocations: 43.83 kB / 1.323 GB, free: 0.7539 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.3924, allocations: 8 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.3926, allocations: 95.84 kB / 1.323 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.98e-05/0.3926, allocations: 23.92 kB / 1.323 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.028e-05/0.3927, allocations: 47.72 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.393, allocations: 143.7 kB / 1.324 GB, free: 452 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.393, allocations: 0 / 1.324 GB, free: 452 kB / 1.014 GB Notification: Performance of FrontEnd: time 9.31e-07/0.393, allocations: 4 kB / 1.324 GB, free: 448 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.393, allocations: 3.938 kB / 1.324 GB, free: 444 kB / 1.014 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.0009137/0.3939, allocations: 456.6 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.3939, allocations: 15.98 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.367e-05/0.394, allocations: 38.73 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.3943, allocations: 36.81 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.3946, allocations: 200.2 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.3946, allocations: 384 / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.3946, allocations: 8.375 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.3949, allocations: 109.6 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.395, allocations: 4 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.395, allocations: 0 / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.395, allocations: 8 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.3953, allocations: 83.92 kB / 1.325 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007795/0.3961, allocations: 348.7 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.3965, allocations: 102.4 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.3967, allocations: 48.89 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3967, allocations: 3.984 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.397, allocations: 115.3 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 3.968e-06/0.397, allocations: 4 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0006988/0.3977, allocations: 205.4 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.3977, allocations: 55.41 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3979, allocations: 147.6 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.3979, allocations: 29.7 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.398, allocations: 108 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.398, allocations: 23.92 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.208e-05/0.3981, allocations: 29.7 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3982, allocations: 318.8 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3984, allocations: 55.95 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.3986, allocations: 59.89 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.399, allocations: 146.5 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.399, allocations: 0 / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005021/0.3995, allocations: 199.2 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.3995, allocations: 35.89 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3995, allocations: 7.938 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3996, allocations: 0 / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.3997, allocations: 19.97 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3997, allocations: 3.938 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.3999, allocations: 23.92 kB / 1.327 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.3999, allocations: 3.984 kB / 1.327 GB, free: 13.18 MB / 1.029 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.0001112/0.4, allocations: 117.8 kB / 1.327 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.4, allocations: 19.91 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.4, allocations: 20.7 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.4001, allocations: 4 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4001, allocations: 3.938 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4001, allocations: 0 / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.4003, allocations: 198.1 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4003, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.4004, allocations: 11.98 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.4004, allocations: 4 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.4004, allocations: 3.984 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4004, allocations: 11.88 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4004, allocations: 3.938 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.4009, allocations: 177 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.486e-05/0.4009, allocations: 89.02 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.4009, allocations: 0 / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.4011, allocations: 19.98 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.4011, allocations: 19.91 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.4012, allocations: 3.938 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.042e-05/0.4012, allocations: 109.6 kB / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4012, allocations: 4 kB / 1.327 GB, free: 12.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002648/0.4015, allocations: 43.92 kB / 1.327 GB, free: 12.24 MB / 1.029 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.0008498/0.4023, allocations: 0.7333 MB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000506/0.4029, allocations: 171.3 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4029, allocations: 4 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.4031, allocations: 63.89 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.4033, allocations: 11.92 kB / 1.328 GB, free: 11.22 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.4058, allocations: 1.727 MB / 1.33 GB, free: 9.395 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.4062, allocations: 0.7039 MB / 1.331 GB, free: 8.664 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.219e-05/0.4063, allocations: 23.95 kB / 1.331 GB, free: 8.641 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.508e-05/0.4063, allocations: 27.42 kB / 1.331 GB, free: 8.613 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.4063, allocations: 0 / 1.331 GB, free: 8.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02844/0.4348, allocations: 2.818 MB / 1.333 GB, free: 5.891 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.289/8.724, allocations: 14.3 kB / 1.333 GB, free: 5.879 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sigRan.y[3] in file Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv. Warning: Get data of variable sigRan.y[3] from file Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.680524940835312]