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.0008003/0.0008003, allocations: 84.38 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.0008121/0.0008122, 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.446/1.446, allocations: 223.3 MB / 240 MB, free: 5.414 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.424/2.424, allocations: 390.4 MB / 0.6655 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003473, allocations: 12 kB / 0.8149 GB, free: 14.06 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8118/0.8121, allocations: 142.3 MB / 0.9539 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.0009654/0.8132, allocations: 383.8 kB / 0.9542 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001697/0.8149, allocations: 1.159 MB / 0.9554 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.285e-05/0.815, allocations: 0.9062 kB / 0.9554 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.215e-05/0.815, allocations: 7.938 kB / 0.9554 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.13e-05/0.8151, allocations: 12.84 kB / 0.9554 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007574/0.8159, allocations: 190 kB / 0.9556 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.8161, allocations: 133.4 kB / 0.9557 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.347e-05/0.8162, allocations: 9.219 kB / 0.9557 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.461e-05/0.8163, allocations: 62.22 kB / 0.9558 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.966e-05/0.8164, allocations: 45.22 kB / 0.9558 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.8164, allocations: 9.156 kB / 0.9558 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.645e-05/0.8165, allocations: 21.67 kB / 0.9558 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.93e-05/0.8165, allocations: 8.062 kB / 0.9558 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.085e-05/0.8166, allocations: 40.59 kB / 0.9559 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.8167, allocations: 102.3 kB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.8168, allocations: 0 / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.474e-06/0.8168, allocations: 0 / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.8168, allocations: 1.094 kB / 0.956 GB, free: 6.527 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.00043/0.8172, allocations: 414 kB / 0.9564 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.8173, allocations: 9.062 kB / 0.9564 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.184e-05/0.8173, allocations: 39.58 kB / 0.9564 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/0.8174, allocations: 15.42 kB / 0.9564 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.8175, allocations: 169.2 kB / 0.9566 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.8176, allocations: 4.438 kB / 0.9566 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.8176, allocations: 12.83 kB / 0.9566 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.8177, allocations: 50.89 kB / 0.9567 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.8178, allocations: 1.094 kB / 0.9567 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.8178, allocations: 0 / 0.9567 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.8178, allocations: 5.031 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.429e-05/0.8178, allocations: 19.94 kB / 0.9567 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005552/0.8184, allocations: 354.6 kB / 0.957 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.213e-05/0.8185, allocations: 29.48 kB / 0.9571 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.8186, allocations: 21.66 kB / 0.9571 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.8186, allocations: 5.094 kB / 0.9571 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/0.8188, allocations: 87.8 kB / 0.9572 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.8188, allocations: 0 / 0.9572 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003143/0.8191, allocations: 103.8 kB / 0.9573 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.8192, allocations: 52.81 kB / 0.9573 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.8193, allocations: 122.5 kB / 0.9574 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.8193, allocations: 33.27 kB / 0.9575 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.316e-05/0.8194, allocations: 96.83 kB / 0.9576 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.8194, allocations: 6.375 kB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.8194, allocations: 3.594 kB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.8195, allocations: 321.2 kB / 0.9579 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.8197, allocations: 61.72 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.8198, allocations: 92.47 kB / 0.958 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.82, allocations: 113.8 kB / 0.9581 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.82, allocations: 0 / 0.9581 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004327/0.8205, allocations: 261.7 kB / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/0.8205, allocations: 69.86 kB / 0.9584 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.8205, allocations: 5.672 kB / 0.9585 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.8206, allocations: 1.875 kB / 0.9585 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.94e-05/0.8206, allocations: 6.625 kB / 0.9585 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.8206, allocations: 5.688 kB / 0.9585 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/0.821, allocations: 78.22 kB / 0.9585 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.8211, allocations: 17.02 kB / 0.9586 GB, free: 4.078 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 0.0001086/0.8212, allocations: 123 kB / 0.9587 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.8212, allocations: 5.859 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.8213, allocations: 10.12 kB / 0.9587 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.8213, allocations: 5.734 kB / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8213, allocations: 0 / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.8213, allocations: 0 / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.8214, allocations: 184.4 kB / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.8215, allocations: 1.781 kB / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-06/0.8215, allocations: 0 / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.8215, allocations: 1.844 kB / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.8215, allocations: 0 / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.8215, allocations: 5.719 kB / 0.9589 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8215, allocations: 3.953 kB / 0.9589 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001444/0.8217, allocations: 107.4 kB / 0.959 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.8217, allocations: 86.3 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.8217, allocations: 1.375 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.93e-05/0.8217, allocations: 1.094 kB / 0.9591 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.8218, allocations: 14.47 kB / 0.9591 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.8218, allocations: 6.562 kB / 0.9591 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.377e-05/0.8219, allocations: 90.8 kB / 0.9592 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8219, allocations: 1.375 kB / 0.9592 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002499/0.8221, allocations: 26.12 kB / 0.9592 GB, free: 3.426 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.0004536/0.8226, allocations: 0.6544 MB / 0.9598 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003641/0.823, allocations: 244.6 kB / 0.9601 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.823, allocations: 0 / 0.9601 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.408e-05/0.823, allocations: 19.94 kB / 0.9601 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.0002613/0.8233, allocations: 21.78 kB / 0.9601 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.8246, allocations: 0.7055 MB / 0.9608 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.8248, allocations: 0.6888 MB / 0.9615 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.393e-05/0.8248, allocations: 8.375 kB / 0.9615 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.8249, allocations: 14.91 kB / 0.9615 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of SimCode: time 1.884e-06/0.8249, allocations: 0 / 0.9615 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.844, allocations: 2.577 MB / 0.964 GB, free: 52 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.8444, allocations: 189.1 kB / 0.9642 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.603, allocations: 0 / 0.9642 GB, free: 15.81 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