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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001321/0.001321, allocations: 103.8 kB / 16.35 MB, free: 6.285 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.001212/0.001212, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.447/1.447, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.283/2.283, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 66.78 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3112, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003215/0.3144, allocations: 1.553 MB / 0.9526 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3156, allocations: 0.5804 MB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.176e-05/0.3157, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.3158, allocations: 11.86 kB / 0.9532 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.307e-05/0.3159, allocations: 11.88 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.3163, allocations: 91.7 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.3165, allocations: 103.7 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.3166, allocations: 20.23 kB / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3168, allocations: 39.84 kB / 0.9535 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.3169, allocations: 51.81 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.3169, allocations: 4 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.3171, allocations: 91.84 kB / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.3171, allocations: 27.92 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.3172, allocations: 39.73 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.3174, allocations: 139.5 kB / 0.9538 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3174, allocations: 4 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3174, allocations: 0 / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3174, allocations: 0 / 0.9538 GB, free: 5.281 MB / 0.7325 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.000848/0.3183, allocations: 452.7 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.3183, allocations: 12.03 kB / 0.9542 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.3184, allocations: 12.84 kB / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.3186, allocations: 198.1 kB / 0.9544 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3186, allocations: 8.375 kB / 0.9544 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.3187, allocations: 4.375 kB / 0.9544 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.319, allocations: 109.9 kB / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.319, allocations: 0 / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.319, allocations: 3.984 kB / 0.9546 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.3191, allocations: 7.938 kB / 0.9546 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.3194, allocations: 91.86 kB / 0.9547 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006571/0.32, allocations: 348.6 kB / 0.955 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.3204, allocations: 98.5 kB / 0.9551 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3205, allocations: 48.89 kB / 0.9551 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.3205, allocations: 7.938 kB / 0.9551 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.3209, allocations: 115.3 kB / 0.9552 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3209, allocations: 0 / 0.9552 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0006377/0.3215, allocations: 205.4 kB / 0.9554 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.3216, allocations: 51.41 kB / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.3217, allocations: 141.8 kB / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.3218, allocations: 33.7 kB / 0.9557 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.3219, allocations: 104.1 kB / 0.9558 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.322, allocations: 27.64 kB / 0.9558 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/0.322, allocations: 29.7 kB / 0.9558 GB, free: 3 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3222, allocations: 318.8 kB / 0.9561 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.3224, allocations: 59.94 kB / 0.9562 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.3226, allocations: 63.89 kB / 0.9562 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.323, allocations: 146.4 kB / 0.9564 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.323, allocations: 0 / 0.9564 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004345/0.3234, allocations: 191.3 kB / 0.9566 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.3235, allocations: 41.69 kB / 0.9566 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3235, allocations: 0 / 0.9566 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.3235, allocations: 480 / 0.9566 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3237, allocations: 19.98 kB / 0.9566 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.3237, allocations: 4 kB / 0.9566 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.3238, allocations: 31.75 kB / 0.9566 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.3238, allocations: 4 kB / 0.9567 GB, free: 2.102 MB / 0.7325 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.0001026/0.324, allocations: 121.7 kB / 0.9568 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.324, allocations: 11.91 kB / 0.9568 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.324, allocations: 16.7 kB / 0.9568 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.324, allocations: 4 kB / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3241, allocations: 0 / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3241, allocations: 0 / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/0.3242, allocations: 205.5 kB / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3242, allocations: 0 / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.3244, allocations: 11.98 kB / 0.957 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3244, allocations: 4 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3244, allocations: 7.984 kB / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3244, allocations: 0 / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3244, allocations: 0 / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/0.3248, allocations: 184.7 kB / 0.9572 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.756e-05/0.3249, allocations: 89.02 kB / 0.9573 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3249, allocations: 0 / 0.9573 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.325, allocations: 15.98 kB / 0.9573 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.884e-05/0.3251, allocations: 15.98 kB / 0.9573 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3251, allocations: 3.984 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001365/0.3252, allocations: 105.5 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3252, allocations: 0 / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002413/0.3255, allocations: 35.94 kB / 0.9574 GB, free: 1.188 MB / 0.7325 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.0001863/0.3257, allocations: 131.2 kB / 0.9576 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004524/0.3261, allocations: 187.2 kB / 0.9578 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3262, allocations: 0 / 0.9578 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.3264, allocations: 67.89 kB / 0.9578 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.3266, allocations: 10.38 kB / 0.9578 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006105/0.3273, allocations: 231.5 kB / 0.958 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.3277, allocations: 0.6963 MB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.784e-05/0.3278, allocations: 15.97 kB / 0.9587 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.3279, allocations: 19.42 kB / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of SimCode: time 3.41e-07/0.3279, allocations: 0 / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of Templates: time 0.004389/0.3323, allocations: 1.401 MB / 0.9601 GB, free: 14.38 MB / 0.7481 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 -s cvode -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/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