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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001396/0.001396, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001754/0.001754, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003171, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6749/0.6753, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.001305/0.6766, allocations: 1.231 MB / 0.9548 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006991/0.6773, allocations: 0.5513 MB / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.212e-05/0.6774, allocations: 0 / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.688e-05/0.6775, allocations: 5.312 kB / 0.9553 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.841e-05/0.6775, allocations: 17.45 kB / 0.9553 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.6778, allocations: 70.2 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.396e-05/0.6779, allocations: 58.41 kB / 0.9555 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.141e-05/0.678, allocations: 16.98 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.535e-05/0.6781, allocations: 38.86 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.773e-05/0.6782, allocations: 37.02 kB / 0.9556 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.6782, allocations: 4.656 kB / 0.9556 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.181e-05/0.6783, allocations: 53.83 kB / 0.9556 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/0.6783, allocations: 11.67 kB / 0.9556 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.042e-05/0.6783, allocations: 42.48 kB / 0.9557 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.6785, allocations: 88.36 kB / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.6785, allocations: 0.9688 kB / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6785, allocations: 0 / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.878e-06/0.6785, allocations: 0 / 0.9557 GB, free: 6.438 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.0006049/0.6791, allocations: 454.4 kB / 0.9562 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.6791, allocations: 9.344 kB / 0.9562 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.6792, allocations: 36.5 kB / 0.9562 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.6792, allocations: 16.77 kB / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.6794, allocations: 189.7 kB / 0.9564 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.6794, allocations: 2.875 kB / 0.9564 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.6794, allocations: 7.938 kB / 0.9564 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.6797, allocations: 119.4 kB / 0.9565 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.6797, allocations: 3.938 kB / 0.9565 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.6797, allocations: 3.953 kB / 0.9566 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.6797, allocations: 8.438 kB / 0.9566 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.6801, allocations: 107.3 kB / 0.9567 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.6806, allocations: 358.1 kB / 0.957 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.6809, allocations: 115.7 kB / 0.9571 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.6809, allocations: 1.188 kB / 0.9571 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.6812, allocations: 121.2 kB / 0.9572 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.6812, allocations: 0 / 0.9572 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0006151/0.6819, allocations: 315.2 kB / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.6819, allocations: 60.52 kB / 0.9576 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/0.682, allocations: 139.4 kB / 0.9577 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.682, allocations: 27.05 kB / 0.9577 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.682, allocations: 103 kB / 0.9578 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.6821, allocations: 24.89 kB / 0.9579 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.6821, allocations: 7.938 kB / 0.9579 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.656e-05/0.6821, allocations: 321.4 kB / 0.9582 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.6823, allocations: 60.86 kB / 0.9582 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.6825, allocations: 70.8 kB / 0.9583 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.6827, allocations: 91.25 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6827, allocations: 7.953 kB / 0.9584 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004088/0.6831, allocations: 221.7 kB / 0.9586 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.6831, allocations: 35.2 kB / 0.9587 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.6832, allocations: 3.984 kB / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.6832, allocations: 1.375 kB / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.6833, allocations: 20.95 kB / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.6833, allocations: 0 / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.6835, allocations: 23.11 kB / 0.9587 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.6835, allocations: 6.734 kB / 0.9587 GB, free: 3.926 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.45e-05/0.6836, allocations: 123.2 kB / 0.9588 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.6836, allocations: 21.36 kB / 0.9588 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.228e-05/0.6836, allocations: 18.02 kB / 0.9589 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.6837, allocations: 4.125 kB / 0.9589 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6837, allocations: 0 / 0.9589 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.6837, allocations: 0 / 0.9589 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.6838, allocations: 204.7 kB / 0.9591 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.6838, allocations: 4 kB / 0.9591 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.6839, allocations: 23.06 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6839, allocations: 1.375 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.684, allocations: 5.375 kB / 0.9591 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.684, allocations: 0 / 0.9591 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.684, allocations: 3.984 kB / 0.9591 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004232/0.6844, allocations: 195 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.6844, allocations: 87.91 kB / 0.9594 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.6845, allocations: 9.016 kB / 0.9594 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.6846, allocations: 16.73 kB / 0.9594 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.38e-05/0.6847, allocations: 18.09 kB / 0.9594 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.6847, allocations: 1.188 kB / 0.9594 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.324e-05/0.6848, allocations: 106.4 kB / 0.9595 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6848, allocations: 0 / 0.9595 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000265/0.685, allocations: 39.73 kB / 0.9595 GB, free: 3.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006775/0.6857, allocations: 0.7575 MB / 0.9603 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004595/0.6862, allocations: 209.5 kB / 0.9605 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6862, allocations: 1.031 kB / 0.9605 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.6864, allocations: 69.42 kB / 0.9606 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.6866, allocations: 12.27 kB / 0.9606 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.688, allocations: 0.8205 MB / 0.9614 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.6881, allocations: 0.7036 MB / 0.9621 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.263e-05/0.6882, allocations: 19.47 kB / 0.9621 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.324e-05/0.6883, allocations: 27.39 kB / 0.9621 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6883, allocations: 0 / 0.9621 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.7005, allocations: 2.388 MB / 0.9644 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.7007, allocations: 183.6 kB / 0.9646 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.399, allocations: 0 / 0.9646 GB, free: 15.66 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat does not exist to compare? outputFormat=mat