Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",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.00121/0.001214, allocations: 100.1 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.001415/0.001415, 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.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.363 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.552/2.552, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003926, allocations: 8 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7097/0.7101, allocations: 142.3 MB / 0.9536 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.0007608/0.7109, allocations: 378.5 kB / 0.954 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.7121, allocations: 1.14 MB / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.128e-05/0.7121, allocations: 0 / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.7122, allocations: 1.094 kB / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.268e-05/0.7122, allocations: 14.03 kB / 0.9551 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.7127, allocations: 119 kB / 0.9552 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.769e-05/0.7128, allocations: 68.31 kB / 0.9553 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.432e-05/0.7129, allocations: 6.406 kB / 0.9553 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.675e-05/0.7129, allocations: 54.22 kB / 0.9553 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.096e-05/0.713, allocations: 45.06 kB / 0.9554 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.7131, allocations: 6.406 kB / 0.9554 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.7131, allocations: 12.81 kB / 0.9554 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.7132, allocations: 14.16 kB / 0.9554 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.7132, allocations: 45.09 kB / 0.9554 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.7133, allocations: 71.83 kB / 0.9555 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.7134, allocations: 0 / 0.9555 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.023e-06/0.7134, allocations: 0 / 0.9555 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.7134, allocations: 0 / 0.9555 GB, free: 6.648 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004794/0.7139, allocations: 396.9 kB / 0.9559 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.7139, allocations: 8.594 kB / 0.9559 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.022e-05/0.7139, allocations: 31.72 kB / 0.9559 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.917e-05/0.714, allocations: 8.953 kB / 0.9559 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.999e-05/0.7141, allocations: 174.9 kB / 0.9561 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.7141, allocations: 6.875 kB / 0.9561 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.7141, allocations: 14.66 kB / 0.9561 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.7143, allocations: 78.05 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.7143, allocations: 0 / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.7144, allocations: 0.875 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.7144, allocations: 1.031 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.7145, allocations: 47.11 kB / 0.9562 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.7149, allocations: 321.8 kB / 0.9565 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.7151, allocations: 71.11 kB / 0.9566 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.7152, allocations: 9.047 kB / 0.9566 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.7154, allocations: 102.9 kB / 0.9567 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.7154, allocations: 0 / 0.9567 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005087/0.7159, allocations: 192.5 kB / 0.9569 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.716, allocations: 52.41 kB / 0.957 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.779e-05/0.7161, allocations: 121.7 kB / 0.9571 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.7161, allocations: 31.8 kB / 0.9571 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.881e-05/0.7161, allocations: 83.67 kB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.7162, allocations: 18.62 kB / 0.9572 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.406e-05/0.7162, allocations: 6.281 kB / 0.9572 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.7162, allocations: 322.2 kB / 0.9575 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.7164, allocations: 55.16 kB / 0.9576 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.7165, allocations: 71.83 kB / 0.9576 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.7167, allocations: 81.58 kB / 0.9577 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.7167, allocations: 0 / 0.9577 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003558/0.7171, allocations: 197 kB / 0.9579 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.7171, allocations: 44 kB / 0.9579 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.7171, allocations: 96 / 0.9579 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.7171, allocations: 9.703 kB / 0.958 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.7172, allocations: 13.73 kB / 0.958 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.7173, allocations: 13.86 kB / 0.958 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.7175, allocations: 42.72 kB / 0.958 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.7175, allocations: 10.34 kB / 0.958 GB, free: 4.316 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * 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 8.546e-05/0.7176, allocations: 126.3 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.527e-05/0.7176, allocations: 6.75 kB / 0.9582 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.7176, allocations: 9.875 kB / 0.9582 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.7176, allocations: 5.484 kB / 0.9582 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.7176, allocations: 0 / 0.9582 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.7177, allocations: 0 / 0.9582 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004366/0.7181, allocations: 406.5 kB / 0.9586 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.7181, allocations: 4 kB / 0.9586 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.7181, allocations: 3.75 kB / 0.9586 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.7182, allocations: 1.5 kB / 0.9586 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.7182, allocations: 9.25 kB / 0.9586 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7182, allocations: 1.125 kB / 0.9586 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.7182, allocations: 0 / 0.9586 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.7185, allocations: 245.6 kB / 0.9588 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.024e-05/0.7185, allocations: 79.42 kB / 0.9589 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.7185, allocations: 8 kB / 0.9589 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.7186, allocations: 11.31 kB / 0.9589 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.7187, allocations: 7.969 kB / 0.9589 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.7187, allocations: 8.047 kB / 0.9589 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.046e-05/0.7187, allocations: 90.84 kB / 0.959 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7188, allocations: 0 / 0.959 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002522/0.719, allocations: 30.27 kB / 0.959 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004905/0.7195, allocations: 0.7787 MB / 0.9598 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003198/0.7198, allocations: 188.8 kB / 0.96 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7198, allocations: 0 / 0.96 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.72, allocations: 58.31 kB / 0.96 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.7202, allocations: 15.77 kB / 0.96 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000557/0.7207, allocations: 0.6955 MB / 0.9607 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.7209, allocations: 0.6898 MB / 0.9614 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.117e-05/0.7209, allocations: 11.84 kB / 0.9614 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/0.7209, allocations: 19.94 kB / 0.9614 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7209, allocations: 0 / 0.9614 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.7325, allocations: 2.376 MB / 0.9638 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.7327, allocations: 195.4 kB / 0.9639 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.466, allocations: 3.938 kB / 0.9639 GB, free: 15.73 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat does not exist to compare? outputFormat=mat