Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.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.Nor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",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.001164/0.001164, allocations: 99.86 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.001367/0.001368, 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.458/1.458, allocations: 223.2 MB / 239.9 MB, free: 5.34 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.405/2.405, allocations: 390.3 MB / 0.6653 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003677, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.842/0.8424, allocations: 142.3 MB / 0.9536 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.0008291/0.8433, allocations: 377.5 kB / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.8445, allocations: 1.135 MB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.91e-05/0.8446, allocations: 0 / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.8446, allocations: 5.25 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.927e-05/0.8447, allocations: 13.31 kB / 0.9551 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005752/0.8453, allocations: 199.1 kB / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.8454, allocations: 74.75 kB / 0.9554 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.473e-05/0.8455, allocations: 11.77 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.8456, allocations: 63.2 kB / 0.9554 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.249e-05/0.8457, allocations: 41.12 kB / 0.9555 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.8457, allocations: 7.688 kB / 0.9555 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.8458, allocations: 26.34 kB / 0.9555 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.8458, allocations: 12.02 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.8459, allocations: 39.83 kB / 0.9555 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.8461, allocations: 106.6 kB / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.8461, allocations: 0 / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8461, allocations: 0 / 0.9556 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.8461, allocations: 1.125 kB / 0.9556 GB, free: 6.477 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.00037/0.8465, allocations: 409.7 kB / 0.956 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.8465, allocations: 9.438 kB / 0.956 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.098e-05/0.8465, allocations: 31.66 kB / 0.9561 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.8466, allocations: 15.39 kB / 0.9561 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.203e-05/0.8467, allocations: 173.1 kB / 0.9563 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.8467, allocations: 8.266 kB / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.8467, allocations: 13.59 kB / 0.9563 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.8469, allocations: 42.88 kB / 0.9563 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.8469, allocations: 0 / 0.9563 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.8469, allocations: 5.281 kB / 0.9563 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.8469, allocations: 0 / 0.9563 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.918e-05/0.8469, allocations: 19.81 kB / 0.9563 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004099/0.8473, allocations: 355 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.839e-05/0.8474, allocations: 28.45 kB / 0.9567 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.8474, allocations: 5.141 kB / 0.9567 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.8476, allocations: 84.27 kB / 0.9568 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.8476, allocations: 0 / 0.9568 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002297/0.8478, allocations: 111 kB / 0.9569 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.8479, allocations: 52.69 kB / 0.957 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.137e-05/0.8479, allocations: 114.6 kB / 0.9571 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.848, allocations: 33.14 kB / 0.9571 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.848, allocations: 97.78 kB / 0.9572 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.8481, allocations: 10.44 kB / 0.9572 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.8481, allocations: 7.406 kB / 0.9572 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.8481, allocations: 316.5 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.8483, allocations: 59.16 kB / 0.9576 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.8484, allocations: 101.1 kB / 0.9577 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.8485, allocations: 111.4 kB / 0.9578 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8486, allocations: 0 / 0.9578 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003859/0.8489, allocations: 265.6 kB / 0.958 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.849, allocations: 69.23 kB / 0.9581 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.849, allocations: 1.406 kB / 0.9581 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.849, allocations: 5.328 kB / 0.9581 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.1e-05/0.849, allocations: 6.312 kB / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.8491, allocations: 6.406 kB / 0.9581 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003838/0.8494, allocations: 85.95 kB / 0.9582 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.8495, allocations: 15.92 kB / 0.9582 GB, free: 4.047 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,nor1.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 7.887e-05/0.8496, allocations: 118.7 kB / 0.9583 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.8496, allocations: 7.672 kB / 0.9583 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.8496, allocations: 12.31 kB / 0.9583 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.8496, allocations: 3.953 kB / 0.9583 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.8496, allocations: 0 / 0.9583 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.8496, allocations: 2.375 kB / 0.9583 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.576e-05/0.8497, allocations: 166.7 kB / 0.9585 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.8497, allocations: 5.406 kB / 0.9585 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.858e-06/0.8498, allocations: 5.672 kB / 0.9585 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.8498, allocations: 0 / 0.9585 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.8498, allocations: 1.906 kB / 0.9585 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.8498, allocations: 0 / 0.9585 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8498, allocations: 3.953 kB / 0.9585 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.8499, allocations: 117.2 kB / 0.9586 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.8499, allocations: 82.73 kB / 0.9587 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.85, allocations: 4 kB / 0.9587 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.394e-05/0.85, allocations: 5.594 kB / 0.9587 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.85, allocations: 7.359 kB / 0.9587 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.85, allocations: 5.328 kB / 0.9587 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.168e-05/0.8501, allocations: 94.98 kB / 0.9588 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8501, allocations: 0 / 0.9588 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002307/0.8503, allocations: 31.03 kB / 0.9588 GB, free: 3.395 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,nor1.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.0003228/0.8507, allocations: 0.6512 MB / 0.9595 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002832/0.8509, allocations: 244.2 kB / 0.9597 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.851, allocations: 0 / 0.9597 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.89e-05/0.851, allocations: 19.09 kB / 0.9597 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.8512, allocations: 20.3 kB / 0.9598 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005471/0.8517, allocations: 0.994 MB / 0.9607 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.8519, allocations: 0.6891 MB / 0.9614 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.615e-05/0.8519, allocations: 7.906 kB / 0.9614 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.8519, allocations: 23.55 kB / 0.9614 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8519, allocations: 0 / 0.9614 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.8657, allocations: 2.545 MB / 0.9639 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/0.8659, allocations: 176.1 kB / 0.9641 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.514, allocations: 4.625 kB / 0.9641 GB, free: 15.34 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat does not exist to compare? outputFormat=mat