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.004759/0.004759, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.001065/0.001065, allocations: 195.7 kB / 16.67 MB, free: 5.969 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 15.18 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.112/2.112, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 63.91 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7717/0.773, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002356/0.7754, allocations: 1.544 MB / 1.089 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008466/0.7762, allocations: 0.5679 MB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.7763, allocations: 1.125 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.7764, allocations: 10.41 kB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.227e-05/0.7765, allocations: 25.02 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.7769, allocations: 90.83 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000137/0.777, allocations: 93.52 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.7771, allocations: 23.98 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.7772, allocations: 49.2 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.366e-05/0.7773, allocations: 41.14 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.7774, allocations: 11.44 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.7775, allocations: 94.83 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.94e-05/0.7776, allocations: 21.44 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.588e-05/0.7776, allocations: 38.67 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.7779, allocations: 137.3 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.7779, allocations: 0 / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7779, allocations: 0.9062 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.7779, allocations: 0 / 1.09 GB, free: 3.539 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.0006941/0.7786, allocations: 452.3 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.7786, allocations: 13.58 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.05e-05/0.7787, allocations: 42.58 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.854e-05/0.7787, allocations: 17.44 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.7789, allocations: 192.8 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.7789, allocations: 3.031 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.7789, allocations: 8.422 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.7792, allocations: 101.2 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.7792, allocations: 4.5 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.7793, allocations: 4.938 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.7793, allocations: 9.719 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.7796, allocations: 82.5 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.7802, allocations: 351 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.7805, allocations: 96.34 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.7807, allocations: 59.69 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.7807, allocations: 1.062 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.781, allocations: 114.2 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.781, allocations: 0 / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0006578/0.7817, allocations: 204.5 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/0.7817, allocations: 54.45 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.249e-05/0.7818, allocations: 141.5 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.7818, allocations: 31.25 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.7819, allocations: 107.1 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.7819, allocations: 29.72 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.782, allocations: 28.73 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.782, allocations: 329 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.7822, allocations: 53.09 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.7824, allocations: 64.83 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.7828, allocations: 139.7 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.7828, allocations: 0.75 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004627/0.7833, allocations: 199 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.7833, allocations: 32.81 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7833, allocations: 0.75 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.7833, allocations: 0.6875 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.7835, allocations: 22.97 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.7835, allocations: 0.8125 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.7836, allocations: 14.5 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.7837, allocations: 11.42 kB / 1.093 GB, free: 1.359 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.066e-05/0.7837, allocations: 125.6 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.046e-05/0.7838, allocations: 9.078 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.7838, allocations: 12.44 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.7838, allocations: 4.578 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.7838, allocations: 0.7969 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7838, allocations: 0.6562 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.784, allocations: 209.8 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.784, allocations: 1.594 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.7841, allocations: 16.5 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.7841, allocations: 4.594 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.7841, allocations: 2.781 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7841, allocations: 4 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7841, allocations: 0.7188 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004242/0.7846, allocations: 181.3 kB / 1.094 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.7846, allocations: 88.66 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.7846, allocations: 6.109 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.7848, allocations: 18.5 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.7848, allocations: 13.2 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.7849, allocations: 2.953 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.224e-05/0.7849, allocations: 110.7 kB / 1.094 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7849, allocations: 0.9375 kB / 1.094 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002558/0.7852, allocations: 36.62 kB / 1.094 GB, free: 0.6953 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.0006989/0.7859, allocations: 0.732 MB / 1.095 GB, free: 16.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004941/0.7864, allocations: 186.9 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7864, allocations: 0 / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.7866, allocations: 66.39 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.7868, allocations: 15.33 kB / 1.095 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.7892, allocations: 1.727 MB / 1.096 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.7895, allocations: 0.7017 MB / 1.097 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.607e-05/0.7895, allocations: 19.69 kB / 1.097 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.013e-05/0.7896, allocations: 27.42 kB / 1.097 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.7896, allocations: 0 / 1.097 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01827/0.8079, allocations: 2.756 MB / 1.1 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.168/7.976, allocations: 5.062 kB / 1.1 GB, free: 13.43 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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