Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_latest_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/Buildings 10.0.0-master/package.mo): time 2.275/2.275, allocations: 390.3 MB / 402.8 MB, free: 6.672 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 183.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.3 MB / 0.7915 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008939/0.0008938, allocations: 95.89 kB / 0.9317 GB, free: 5.727 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.943e-05/3.976e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3011, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9593/1.26, allocations: 150.3 MB / 1.366 GB, free: 3.707 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/1.261, allocations: 71.95 kB / 1.366 GB, free: 3.668 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007429/1.268, allocations: 2.464 MB / 1.368 GB, free: 1.547 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.513e-06/1.268, allocations: 0 / 1.368 GB, free: 1.547 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.912e-06/1.268, allocations: 0 / 1.368 GB, free: 1.547 MB / 0.823 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.0005023/1.269, allocations: 397.3 kB / 1.368 GB, free: 1.117 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.269, allocations: 8.031 kB / 1.368 GB, free: 1.109 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/1.269, allocations: 38.55 kB / 1.368 GB, free: 1.062 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/1.269, allocations: 4 kB / 1.369 GB, free: 1.059 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/1.269, allocations: 174.2 kB / 1.369 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/1.269, allocations: 4 kB / 1.369 GB, free: 0.8477 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/1.269, allocations: 7.984 kB / 1.369 GB, free: 0.8398 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/1.269, allocations: 66.42 kB / 1.369 GB, free: 0.7812 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-06/1.269, allocations: 0 / 1.369 GB, free: 0.7812 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/1.269, allocations: 4 kB / 1.369 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/1.269, allocations: 0 / 1.369 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.156e-05/1.269, allocations: 30.67 kB / 1.369 GB, free: 0.7578 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/1.27, allocations: 323 kB / 1.369 GB, free: 428 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/1.27, allocations: 60.31 kB / 1.369 GB, free: 376 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.444e-05/1.27, allocations: 39.23 kB / 1.369 GB, free: 344 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/1.27, allocations: 0 / 1.369 GB, free: 344 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/1.27, allocations: 99.11 kB / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/1.27, allocations: 0 / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of matching and sorting (n=9): time 0.0002945/1.271, allocations: 130.2 kB / 1.369 GB, free: 136 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/1.271, allocations: 59.3 kB / 1.369 GB, free: 64 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.983e-05/1.271, allocations: 116.5 kB / 1.37 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/1.271, allocations: 29.7 kB / 1.37 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/1.271, allocations: 87.56 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/1.271, allocations: 22.97 kB / 1.37 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/1.271, allocations: 7.188 kB / 1.37 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001128/1.271, allocations: 317.8 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.851e-05/1.271, allocations: 42.12 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/1.271, allocations: 70.12 kB / 1.37 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/1.271, allocations: 76.06 kB / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.271, allocations: 0 / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005138/1.272, allocations: 226.4 kB / 1.37 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/1.272, allocations: 44.84 kB / 1.37 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/1.272, allocations: 4.562 kB / 1.37 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/1.272, allocations: 34.09 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.97e-05/1.272, allocations: 4 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/1.274, allocations: 1.434 MB / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/1.274, allocations: 44.03 kB / 1.372 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/1.274, allocations: 11.25 kB / 1.372 GB, free: 13.5 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001065/1.274, allocations: 125.5 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/1.274, allocations: 7.906 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.993e-05/1.274, allocations: 8.062 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.274, allocations: 4 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/1.274, allocations: 0 / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/1.274, allocations: 4 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/1.275, allocations: 396.1 kB / 1.372 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.275, allocations: 0 / 1.372 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/1.275, allocations: 7.984 kB / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/1.275, allocations: 0 / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/1.275, allocations: 0 / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/1.275, allocations: 4 kB / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.275, allocations: 0 / 1.372 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/1.275, allocations: 234.7 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/1.275, allocations: 81.11 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/1.275, allocations: 0 / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.987e-05/1.275, allocations: 7.984 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/1.275, allocations: 4 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/1.275, allocations: 7.734 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.884e-05/1.275, allocations: 90.41 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.275, allocations: 4 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002959/1.276, allocations: 31.69 kB / 1.373 GB, free: 12.49 MB / 0.8386 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) * 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.0006127/1.276, allocations: 0.7818 MB / 1.374 GB, free: 11.71 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004039/1.277, allocations: 274.2 kB / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.277, allocations: 128 / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.898e-05/1.277, allocations: 47.25 kB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/1.277, allocations: 13.48 kB / 1.374 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004486/1.277, allocations: 169.5 kB / 1.374 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/1.278, allocations: 0.6926 MB / 1.375 GB, free: 10.51 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.396e-05/1.278, allocations: 4.672 kB / 1.375 GB, free: 10.51 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/1.278, allocations: 22.38 kB / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.278, allocations: 0 / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/1.294, allocations: 2.654 MB / 1.377 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/1.294, allocations: 204.7 kB / 1.378 GB, free: 7.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.846, allocations: 0 / 1.378 GB, free: 7.84 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat does not exist to compare? outputFormat=mat