Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",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.0009401/0.0009401, allocations: 99.94 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.001023/0.001022, allocations: 177.3 kB / 15.95 MB, free: 216 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.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.367 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.403/2.403, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003183, allocations: 8 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7744/0.7748, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.0007819/0.7756, allocations: 382.6 kB / 0.954 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.777, allocations: 1.13 MB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.415e-05/0.7771, allocations: 5.125 kB / 0.9551 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.928e-05/0.7771, allocations: 0 / 0.9551 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.56e-05/0.7772, allocations: 14.62 kB / 0.9551 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006425/0.7779, allocations: 197.2 kB / 0.9553 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.778, allocations: 83.7 kB / 0.9554 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.394e-05/0.7781, allocations: 4.5 kB / 0.9554 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.7783, allocations: 62.34 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.715e-05/0.7784, allocations: 45.16 kB / 0.9555 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.7784, allocations: 8.875 kB / 0.9555 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.992e-05/0.7785, allocations: 17.67 kB / 0.9555 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.7785, allocations: 14.42 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.003e-05/0.7786, allocations: 41.08 kB / 0.9555 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.7787, allocations: 99.08 kB / 0.9556 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.7787, allocations: 0 / 0.9556 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7787, allocations: 0 / 0.9556 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.209e-06/0.7787, allocations: 0 / 0.9556 GB, free: 6.512 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003892/0.7791, allocations: 415.5 kB / 0.956 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.7792, allocations: 9.062 kB / 0.956 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.7792, allocations: 31.75 kB / 0.9561 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.7793, allocations: 14.67 kB / 0.9561 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.588e-05/0.7794, allocations: 174.2 kB / 0.9563 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.7794, allocations: 12.28 kB / 0.9563 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.7794, allocations: 12.98 kB / 0.9563 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.7795, allocations: 42.62 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.7795, allocations: 1.281 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.7796, allocations: 0 / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.7796, allocations: 1.25 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.105e-05/0.7796, allocations: 22.75 kB / 0.9563 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004068/0.78, allocations: 355.3 kB / 0.9567 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.089e-05/0.7801, allocations: 32.89 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.7801, allocations: 1.125 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001468/0.7803, allocations: 79.45 kB / 0.9568 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.7803, allocations: 0 / 0.9568 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002298/0.7805, allocations: 114.9 kB / 0.9569 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.7806, allocations: 56.56 kB / 0.957 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.999e-05/0.7806, allocations: 115.4 kB / 0.9571 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.7807, allocations: 29.83 kB / 0.9571 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.7807, allocations: 96.72 kB / 0.9572 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.7807, allocations: 10.47 kB / 0.9572 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.7808, allocations: 3.75 kB / 0.9572 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.393e-05/0.7808, allocations: 320.4 kB / 0.9575 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.7809, allocations: 58.56 kB / 0.9576 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.7811, allocations: 90.67 kB / 0.9576 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.7812, allocations: 119.3 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.7812, allocations: 0 / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003751/0.7816, allocations: 257.3 kB / 0.958 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.955e-05/0.7817, allocations: 69.78 kB / 0.9581 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.7817, allocations: 1.281 kB / 0.9581 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.7817, allocations: 10.34 kB / 0.9581 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.261e-05/0.7817, allocations: 2.875 kB / 0.9581 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.7818, allocations: 1.594 kB / 0.9581 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000401/0.7822, allocations: 88.95 kB / 0.9582 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.7822, allocations: 12.36 kB / 0.9582 GB, free: 4.09 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,nand1.y) * 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: 0 * Algorithm blocks: 2 * 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 9.031e-05/0.7823, allocations: 122.7 kB / 0.9583 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.7823, allocations: 3.188 kB / 0.9583 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.7824, allocations: 21.98 kB / 0.9583 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.7824, allocations: 3.953 kB / 0.9583 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.7824, allocations: 1.469 kB / 0.9583 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.7824, allocations: 0 / 0.9583 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.698e-05/0.7825, allocations: 172 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7825, allocations: 1.656 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.099e-05/0.7825, allocations: 9.531 kB / 0.9585 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.7825, allocations: 3.984 kB / 0.9585 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.7825, allocations: 1.656 kB / 0.9585 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.7825, allocations: 0 / 0.9585 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7825, allocations: 7.953 kB / 0.9585 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.7827, allocations: 112.6 kB / 0.9586 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.7827, allocations: 82.83 kB / 0.9587 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.7827, allocations: 1.75 kB / 0.9587 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.899e-05/0.7828, allocations: 0 / 0.9587 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.7828, allocations: 7.641 kB / 0.9587 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.7828, allocations: 5.734 kB / 0.9587 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.58e-05/0.7828, allocations: 94.42 kB / 0.9588 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7828, allocations: 1.844 kB / 0.9588 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002352/0.7831, allocations: 29.19 kB / 0.9588 GB, free: 3.43 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * 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.000342/0.7834, allocations: 0.6436 MB / 0.9595 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003064/0.7838, allocations: 247.6 kB / 0.9597 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.7838, allocations: 1.188 kB / 0.9597 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.325e-05/0.7838, allocations: 31.34 kB / 0.9597 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001833/0.784, allocations: 11.33 kB / 0.9597 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006204/0.7846, allocations: 0.9985 MB / 0.9607 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.7848, allocations: 0.6894 MB / 0.9614 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.7848, allocations: 11.83 kB / 0.9614 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.484e-05/0.7849, allocations: 27.36 kB / 0.9614 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of SimCode: time 5.41e-07/0.7849, allocations: 0 / 0.9614 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01345/0.7983, allocations: 2.53 MB / 0.9639 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.7985, allocations: 180 kB / 0.9641 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.492, allocations: 0 / 0.9641 GB, free: 15.38 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat does not exist to compare? outputFormat=mat