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.001606/0.001606, allocations: 109.4 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.001863/0.001863, allocations: 216.2 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.43/1.43, allocations: 230.6 MB / 252.8 MB, free: 8.965 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 2.997/2.997, allocations: 0.49 GB / 0.7916 GB, free: 33.25 MB / 0.6231 GB " [Timeout remaining time 177] 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.001942/0.001942, allocations: 61.89 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2975, allocations: 176.1 MB / 1.321 GB, free: 3.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002936/0.3004, allocations: 1.579 MB / 1.322 GB, free: 1.789 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001283/0.3017, allocations: 0.6466 MB / 1.323 GB, free: 1.137 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.262e-05/0.3018, allocations: 0 / 1.323 GB, free: 1.137 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.3019, allocations: 15.86 kB / 1.323 GB, free: 1.121 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.574e-05/0.302, allocations: 23.8 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.3025, allocations: 103.8 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.3027, allocations: 99.62 kB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3028, allocations: 12.23 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.303, allocations: 55.77 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.3032, allocations: 43.83 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.3032, allocations: 8 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.3034, allocations: 99.83 kB / 1.323 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.888e-05/0.3034, allocations: 31.91 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.362e-05/0.3035, allocations: 43.73 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.3038, allocations: 147.7 kB / 1.324 GB, free: 472 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3038, allocations: 0 / 1.324 GB, free: 472 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3038, allocations: 0 / 1.324 GB, free: 472 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.3038, allocations: 0 / 1.324 GB, free: 472 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.0008891/0.3047, allocations: 460.5 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3047, allocations: 19.98 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.357e-05/0.3048, allocations: 38.73 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.3051, allocations: 32.83 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.3053, allocations: 194 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.3053, allocations: 384 / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.3054, allocations: 8.375 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.3057, allocations: 113.5 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.3057, allocations: 8 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.3057, allocations: 3.984 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.468e-05/0.3057, allocations: 11.98 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003404/0.3061, allocations: 83.91 kB / 1.325 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006997/0.3068, allocations: 348.7 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.3071, allocations: 90.45 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.3073, allocations: 56.81 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.3073, allocations: 0 / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000317/0.3076, allocations: 119.3 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3076, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0006959/0.3083, allocations: 205.4 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.3084, allocations: 63.47 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.3085, allocations: 148 kB / 1.326 GB, free: 14.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.3085, allocations: 29.7 kB / 1.326 GB, free: 14.26 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.3086, allocations: 100 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.3086, allocations: 23.84 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.3087, allocations: 29.7 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3088, allocations: 318.8 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.309, allocations: 59.95 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.3092, allocations: 59.89 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.3096, allocations: 142.5 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3096, allocations: 0 / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004867/0.3101, allocations: 203.2 kB / 1.326 GB, free: 13.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.3101, allocations: 33.7 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3101, allocations: 0 / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.3101, allocations: 0 / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3103, allocations: 23.91 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3103, allocations: 3.938 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.3104, allocations: 23.92 kB / 1.327 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.3104, allocations: 8 kB / 1.327 GB, free: 13.2 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.0001097/0.3106, allocations: 117.8 kB / 1.327 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3106, allocations: 12.38 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.028e-05/0.3106, allocations: 16.72 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.3106, allocations: 7.984 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3106, allocations: 3.938 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3106, allocations: 0 / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.3108, allocations: 197.5 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3108, allocations: 0 / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.311, allocations: 23.97 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.311, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.311, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.311, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.311, allocations: 7.875 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.3114, allocations: 181 kB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.3115, allocations: 93 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.3115, allocations: 0 / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3117, allocations: 19.92 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.3117, allocations: 15.92 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.3117, allocations: 3.984 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.132e-05/0.3118, allocations: 105.7 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3118, allocations: 4 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002594/0.3121, allocations: 47.88 kB / 1.327 GB, free: 12.26 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.0008733/0.3129, allocations: 0.7295 MB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004851/0.3134, allocations: 179.2 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3134, allocations: 0 / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.3136, allocations: 63.89 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.3139, allocations: 14.41 kB / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.3164, allocations: 1.718 MB / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.3167, allocations: 0.7137 MB / 1.331 GB, free: 8.688 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.393e-05/0.3167, allocations: 15.97 kB / 1.331 GB, free: 8.672 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.676e-05/0.3168, allocations: 27.53 kB / 1.331 GB, free: 8.645 MB / 1.029 GB Notification: Performance of SimCode: time 5.21e-07/0.3168, allocations: 0 / 1.331 GB, free: 8.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.3406, allocations: 2.833 MB / 1.333 GB, free: 5.902 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/8.015, allocations: 10.45 kB / 1.333 GB, free: 5.895 MB / 1.029 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.241629065014422]