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: translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002498/0.002497, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.503/1.503, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.39/2.39, allocations: 390.2 MB / 0.6644 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7102/0.7115, allocations: 140.4 MB / 0.9491 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.00245/0.714, allocations: 1.608 MB / 0.9507 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007873/0.7148, allocations: 0.575 MB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.7149, allocations: 1.25 kB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.715, allocations: 11.92 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.94e-05/0.715, allocations: 14.89 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.7154, allocations: 83.66 kB / 0.9513 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.7156, allocations: 96.2 kB / 0.9514 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.7157, allocations: 17.03 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.7158, allocations: 52.92 kB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.213e-05/0.7159, allocations: 41.95 kB / 0.9515 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.213e-05/0.716, allocations: 11 kB / 0.9515 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.7161, allocations: 64.86 kB / 0.9516 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.537e-05/0.7161, allocations: 23.75 kB / 0.9516 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.216e-05/0.7162, allocations: 41.98 kB / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001892/0.7164, allocations: 129.7 kB / 0.9518 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7164, allocations: 0 / 0.9518 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.455e-06/0.7164, allocations: 0 / 0.9518 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.7164, allocations: 5 kB / 0.9518 GB, free: 7.148 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.0007477/0.7172, allocations: 459.9 kB / 0.9522 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.7172, allocations: 10.78 kB / 0.9522 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.367e-05/0.7173, allocations: 12.69 kB / 0.9522 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.7174, allocations: 198.9 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.7175, allocations: 2.031 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.7175, allocations: 3.375 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.7178, allocations: 108.5 kB / 0.9525 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.7178, allocations: 3.938 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.7178, allocations: 7.984 kB / 0.9526 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.7179, allocations: 4.188 kB / 0.9526 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.7182, allocations: 86.42 kB / 0.9526 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000582/0.7188, allocations: 348.5 kB / 0.953 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.7191, allocations: 90.17 kB / 0.9531 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.7192, allocations: 60.12 kB / 0.9531 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.7193, allocations: 3.938 kB / 0.9531 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.7196, allocations: 122.3 kB / 0.9532 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.764e-06/0.7196, allocations: 0 / 0.9532 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0006034/0.7202, allocations: 206.8 kB / 0.9534 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.184e-05/0.7203, allocations: 56.56 kB / 0.9535 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/0.7203, allocations: 147.5 kB / 0.9536 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.7204, allocations: 25.7 kB / 0.9537 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.135e-05/0.7204, allocations: 104.7 kB / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.7204, allocations: 31.89 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.7205, allocations: 21.72 kB / 0.9538 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.504e-05/0.7205, allocations: 325.7 kB / 0.9541 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.7207, allocations: 59.8 kB / 0.9542 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.7209, allocations: 65.31 kB / 0.9542 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.7212, allocations: 135.5 kB / 0.9544 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7213, allocations: 0 / 0.9544 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004351/0.7217, allocations: 200 kB / 0.9546 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.7217, allocations: 39.56 kB / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.7218, allocations: 1.125 kB / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.7218, allocations: 0 / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.7219, allocations: 21.55 kB / 0.9546 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.7219, allocations: 0 / 0.9546 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.7221, allocations: 17.14 kB / 0.9546 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.7221, allocations: 11.55 kB / 0.9546 GB, free: 4.688 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 8.064e-05/0.7222, allocations: 120 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.001e-05/0.7222, allocations: 11.38 kB / 0.9548 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.343e-05/0.7223, allocations: 20.05 kB / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.7223, allocations: 3.688 kB / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7223, allocations: 0 / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.7223, allocations: 0 / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.7224, allocations: 201 kB / 0.955 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7224, allocations: 3.938 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.7225, allocations: 18.86 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.7226, allocations: 1.438 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.7226, allocations: 0 / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.7226, allocations: 1.344 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7226, allocations: 11.92 kB / 0.955 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.723, allocations: 185.5 kB / 0.9552 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.709e-05/0.723, allocations: 92.44 kB / 0.9553 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.7231, allocations: 0 / 0.9553 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.7232, allocations: 13.48 kB / 0.9553 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.355e-05/0.7233, allocations: 13.83 kB / 0.9553 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.7233, allocations: 5.453 kB / 0.9553 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.095e-05/0.7234, allocations: 102.5 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.022e-06/0.7234, allocations: 1.062 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002721/0.7236, allocations: 47.81 kB / 0.9555 GB, free: 3.945 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.0001593/0.7238, allocations: 116.1 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004344/0.7242, allocations: 189.9 kB / 0.9558 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7243, allocations: 0 / 0.9558 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.7244, allocations: 71.33 kB / 0.9558 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.7247, allocations: 5.844 kB / 0.9558 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000498/0.7252, allocations: 256.5 kB / 0.9561 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.7253, allocations: 0.6999 MB / 0.9568 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.211e-05/0.7254, allocations: 19.06 kB / 0.9568 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.7254, allocations: 15.05 kB / 0.9568 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7255, allocations: 0 / 0.9568 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of Templates: time 0.003705/0.7292, allocations: 1.327 MB / 0.9581 GB, free: 2.082 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (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 & ./Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches