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.0009838/0.000984, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001218/0.001218, allocations: 168.7 kB / 15.95 MB, free: 204 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.334/1.334, allocations: 223.3 MB / 240 MB, free: 5.395 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.351/2.351, allocations: 390.4 MB / 0.6655 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002814, allocations: 8 kB / 0.8149 GB, free: 14.06 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6434/0.6437, allocations: 142.3 MB / 0.9538 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.001369/0.6451, allocations: 1.244 MB / 0.9551 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006895/0.6458, allocations: 0.5417 MB / 0.9556 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.789e-05/0.6459, allocations: 0.625 kB / 0.9556 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.68e-05/0.646, allocations: 4.969 kB / 0.9556 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.891e-05/0.646, allocations: 14.02 kB / 0.9556 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.6463, allocations: 67.2 kB / 0.9557 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.99e-05/0.6464, allocations: 87.36 kB / 0.9558 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.945e-05/0.6465, allocations: 20.58 kB / 0.9558 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.6466, allocations: 39.19 kB / 0.9558 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.6467, allocations: 42.08 kB / 0.9558 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.6467, allocations: 3.125 kB / 0.9559 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.965e-05/0.6468, allocations: 48.86 kB / 0.9559 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.528e-05/0.6469, allocations: 15.23 kB / 0.9559 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.6469, allocations: 38.95 kB / 0.956 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.647, allocations: 96.39 kB / 0.956 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.647, allocations: 0 / 0.956 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.6471, allocations: 5.469 kB / 0.956 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.6471, allocations: 3.938 kB / 0.9561 GB, free: 6.285 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.0006134/0.6477, allocations: 449.7 kB / 0.9565 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6477, allocations: 8.938 kB / 0.9565 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.69e-05/0.6478, allocations: 37.27 kB / 0.9565 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.691e-05/0.6478, allocations: 12.73 kB / 0.9565 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.6479, allocations: 188.4 kB / 0.9567 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.648, allocations: 9.469 kB / 0.9567 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.648, allocations: 4.25 kB / 0.9567 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.6483, allocations: 114.8 kB / 0.9568 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6483, allocations: 1.219 kB / 0.9568 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.6483, allocations: 7.953 kB / 0.9568 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.6483, allocations: 4.312 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003013/0.6486, allocations: 102.4 kB / 0.9569 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.6492, allocations: 363.5 kB / 0.9573 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.6495, allocations: 111.3 kB / 0.9574 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.6496, allocations: 64.12 kB / 0.9575 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.6497, allocations: 1.406 kB / 0.9575 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.6499, allocations: 129.2 kB / 0.9576 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.6499, allocations: 0 / 0.9576 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005845/0.6505, allocations: 244.6 kB / 0.9578 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/0.6506, allocations: 57.75 kB / 0.9579 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.94e-05/0.6507, allocations: 143.1 kB / 0.958 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.6507, allocations: 27.05 kB / 0.958 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/0.6507, allocations: 100.2 kB / 0.9581 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.6508, allocations: 27.08 kB / 0.9582 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-06/0.6508, allocations: 1.062 kB / 0.9582 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.6508, allocations: 325.9 kB / 0.9585 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.651, allocations: 65.52 kB / 0.9585 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.6512, allocations: 69.02 kB / 0.9586 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.6514, allocations: 100.4 kB / 0.9587 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.6514, allocations: 0 / 0.9587 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000414/0.6518, allocations: 220.5 kB / 0.9589 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.6518, allocations: 33.77 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.6518, allocations: 0 / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.6519, allocations: 5.203 kB / 0.9589 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.652, allocations: 32.03 kB / 0.959 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.652, allocations: 5.469 kB / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.6522, allocations: 17.92 kB / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.6522, allocations: 2.625 kB / 0.959 GB, free: 3.836 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.392e-05/0.6523, allocations: 123.8 kB / 0.9591 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.6523, allocations: 8.094 kB / 0.9591 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.6523, allocations: 19.75 kB / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.6523, allocations: 2.688 kB / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6523, allocations: 1.312 kB / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.6523, allocations: 0 / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.6525, allocations: 204.6 kB / 0.9593 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.6525, allocations: 3.953 kB / 0.9593 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.6526, allocations: 27.44 kB / 0.9594 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.6526, allocations: 0 / 0.9594 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.6526, allocations: 5.219 kB / 0.9594 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6526, allocations: 1.156 kB / 0.9594 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6527, allocations: 0 / 0.9594 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.6531, allocations: 199.2 kB / 0.9596 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.6531, allocations: 87.72 kB / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.6532, allocations: 5.312 kB / 0.9597 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.6533, allocations: 20.34 kB / 0.9597 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.6534, allocations: 17.48 kB / 0.9597 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.6534, allocations: 2.75 kB / 0.9597 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.953e-05/0.6534, allocations: 108.1 kB / 0.9598 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6534, allocations: 0 / 0.9598 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002579/0.6537, allocations: 35.81 kB / 0.9598 GB, free: 3.098 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.0006747/0.6544, allocations: 0.7637 MB / 0.9606 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004277/0.6548, allocations: 197.6 kB / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6548, allocations: 0 / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.655, allocations: 74.58 kB / 0.9608 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.6553, allocations: 12.39 kB / 0.9608 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.6567, allocations: 0.8245 MB / 0.9617 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.6569, allocations: 0.6966 MB / 0.9623 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.474e-05/0.657, allocations: 15.53 kB / 0.9623 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.657, allocations: 26.44 kB / 0.9624 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.657, allocations: 1 kB / 0.9624 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.6734, allocations: 2.414 MB / 0.9647 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.6736, allocations: 185.1 kB / 0.9649 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.369, allocations: 3.938 kB / 0.9649 GB, free: 15.57 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