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.007941/0.007941, allocations: 101.4 kB / 15.73 MB, free: 6.008 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.001479/0.001479, allocations: 188.3 kB / 16.67 MB, free: 5.93 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.304/2.304, allocations: 390.2 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.89 kB / 0.9508 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8116/0.8128, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002306/0.8152, allocations: 1.557 MB / 1.089 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.8161, allocations: 0.567 MB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.987e-05/0.8161, allocations: 0.6875 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.347e-05/0.8162, allocations: 7.078 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.758e-05/0.8163, allocations: 20.06 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.8167, allocations: 94.92 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.8169, allocations: 101.9 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.817, allocations: 15.28 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.8171, allocations: 57.39 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.346e-05/0.8172, allocations: 41.94 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.8173, allocations: 7.531 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.8174, allocations: 91.31 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.096e-05/0.8175, allocations: 16.7 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.602e-05/0.8175, allocations: 41.53 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.8178, allocations: 139.2 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8178, allocations: 1.125 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8178, allocations: 0 / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.8178, allocations: 0 / 1.091 GB, free: 3.793 MB / 0.8575 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.0007339/0.8185, allocations: 451.1 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.8186, allocations: 8.719 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.8186, allocations: 14.19 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.8188, allocations: 196 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.8188, allocations: 7.031 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.8188, allocations: 8.047 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.8191, allocations: 110.6 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.8191, allocations: 0 / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.8192, allocations: 0.9062 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.8192, allocations: 5.125 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003542/0.8196, allocations: 91.7 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006101/0.8202, allocations: 346.8 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.8205, allocations: 91.97 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.8207, allocations: 55.17 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.8207, allocations: 9.406 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.8211, allocations: 117.4 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.8211, allocations: 0 / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0006669/0.8218, allocations: 209.4 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.8218, allocations: 53.92 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.557e-05/0.8219, allocations: 142.7 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.8219, allocations: 26.64 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.351e-05/0.822, allocations: 99.3 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.822, allocations: 25.55 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.822, allocations: 33.11 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.8221, allocations: 325 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.8223, allocations: 56.83 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.8225, allocations: 57.47 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.8229, allocations: 147.4 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.8229, allocations: 0 / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004625/0.8234, allocations: 203.4 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.8234, allocations: 34.02 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.8234, allocations: 0 / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.8234, allocations: 1.25 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.8236, allocations: 18.61 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.8236, allocations: 8.906 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.8238, allocations: 22.41 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.8238, allocations: 4.078 kB / 1.093 GB, free: 1.66 MB / 0.8575 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 7.42e-05/0.8239, allocations: 125.5 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.8239, allocations: 8.891 kB / 1.094 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.8239, allocations: 16.67 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.8239, allocations: 4.328 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.824, allocations: 0 / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.824, allocations: 1.734 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.8241, allocations: 214.1 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.8241, allocations: 0 / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.8242, allocations: 16.91 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.8242, allocations: 0.8125 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.8243, allocations: 2.266 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.8243, allocations: 0.9062 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.8243, allocations: 0.7188 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.8247, allocations: 189.2 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.863e-05/0.8248, allocations: 84.06 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.8248, allocations: 5.875 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.825, allocations: 13.44 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.825, allocations: 15 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.825, allocations: 2.766 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.639e-05/0.8251, allocations: 105.6 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8251, allocations: 4 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002762/0.8254, allocations: 44.55 kB / 1.094 GB, free: 0.9883 MB / 0.8575 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.0001532/0.8256, allocations: 110.6 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004925/0.8261, allocations: 183.7 kB / 1.095 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.8261, allocations: 0 / 1.095 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.8263, allocations: 70.81 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.8265, allocations: 18.27 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005807/0.8271, allocations: 232.2 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.8273, allocations: 0.7016 MB / 1.095 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.024e-05/0.8274, allocations: 12.88 kB / 1.096 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.8275, allocations: 12.7 kB / 1.096 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.8275, allocations: 0 / 1.096 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of Templates: time 0.005034/0.8325, allocations: 1.421 MB / 1.097 GB, free: 15.8 MB / 0.8731 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