Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.0009495/0.0009495, allocations: 99.39 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.0009146/0.0009146, 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.401/1.401, allocations: 223.2 MB / 239.9 MB, free: 5.469 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.374/2.374, allocations: 390.3 MB / 0.6653 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 11.98 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7805/0.7809, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.000861/0.7818, allocations: 467 kB / 0.9541 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.7829, allocations: 1.048 MB / 0.9551 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.848e-05/0.7829, allocations: 0.6562 kB / 0.9551 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.127e-05/0.783, allocations: 11.88 kB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.824e-05/0.783, allocations: 10.7 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.7833, allocations: 44.11 kB / 0.9552 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.145e-05/0.7834, allocations: 43.12 kB / 0.9552 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.7835, allocations: 14.08 kB / 0.9552 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.717e-05/0.7836, allocations: 21.8 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.658e-05/0.7836, allocations: 32.95 kB / 0.9553 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.7836, allocations: 2.844 kB / 0.9553 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.7837, allocations: 20.11 kB / 0.9553 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.7837, allocations: 14.45 kB / 0.9553 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.7838, allocations: 30.14 kB / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.404e-05/0.7838, allocations: 49.44 kB / 0.9554 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.7839, allocations: 0 / 0.9554 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7839, allocations: 0 / 0.9554 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.7839, allocations: 1.531 kB / 0.9554 GB, free: 6.703 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004337/0.7843, allocations: 379.2 kB / 0.9557 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.7844, allocations: 8.438 kB / 0.9557 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.7844, allocations: 31.81 kB / 0.9558 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.7844, allocations: 11.8 kB / 0.9558 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.195e-05/0.7845, allocations: 179 kB / 0.956 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.7845, allocations: 6.406 kB / 0.956 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.7846, allocations: 3.438 kB / 0.956 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.7848, allocations: 65.2 kB / 0.956 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.7848, allocations: 5.031 kB / 0.956 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.7848, allocations: 7.984 kB / 0.956 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7848, allocations: 1.281 kB / 0.956 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.785, allocations: 54.58 kB / 0.9561 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.7855, allocations: 331.9 kB / 0.9564 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.7857, allocations: 68.14 kB / 0.9565 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.7857, allocations: 1.156 kB / 0.9565 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.7859, allocations: 83.77 kB / 0.9566 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.7859, allocations: 0 / 0.9566 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004086/0.7863, allocations: 142.4 kB / 0.9567 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.7864, allocations: 60.31 kB / 0.9567 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.7865, allocations: 125 kB / 0.9569 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.7865, allocations: 30.61 kB / 0.9569 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.829e-05/0.7865, allocations: 102 kB / 0.957 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.7865, allocations: 14.91 kB / 0.957 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.7865, allocations: 0.9062 kB / 0.957 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.7866, allocations: 321.5 kB / 0.9573 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.7868, allocations: 35.66 kB / 0.9573 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.7869, allocations: 78.58 kB / 0.9574 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.7871, allocations: 39.98 kB / 0.9575 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.7871, allocations: 1.125 kB / 0.9575 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004149/0.7875, allocations: 142.7 kB / 0.9576 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.7876, allocations: 9.109 kB / 0.9576 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.7876, allocations: 2.5 kB / 0.9576 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.7876, allocations: 2.125 kB / 0.9576 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.7877, allocations: 27.12 kB / 0.9576 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.7877, allocations: 2.844 kB / 0.9576 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.43e-05/0.7878, allocations: 18.94 kB / 0.9577 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.7878, allocations: 12.7 kB / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.781e-05/0.7879, allocations: 116.4 kB / 0.9578 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.7879, allocations: 6.406 kB / 0.9578 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.632e-05/0.788, allocations: 14.73 kB / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.788, allocations: 1 kB / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.788, allocations: 0 / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.788, allocations: 0 / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.7884, allocations: 382.9 kB / 0.9582 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.7884, allocations: 5.109 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.7885, allocations: 20.77 kB / 0.9582 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.7885, allocations: 4 kB / 0.9582 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.7885, allocations: 0 / 0.9582 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.7885, allocations: 1.719 kB / 0.9582 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.7885, allocations: 80 / 0.9582 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.7888, allocations: 217.6 kB / 0.9584 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.513e-05/0.7888, allocations: 91.61 kB / 0.9585 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.7888, allocations: 0 / 0.9585 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-05/0.7889, allocations: 10.14 kB / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.7889, allocations: 6.812 kB / 0.9585 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.789, allocations: 7.141 kB / 0.9585 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.129e-05/0.789, allocations: 87.78 kB / 0.9586 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.789, allocations: 0 / 0.9586 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002516/0.7892, allocations: 20.7 kB / 0.9586 GB, free: 3.672 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: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.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.0004452/0.7897, allocations: 0.7556 MB / 0.9594 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.79, allocations: 82.58 kB / 0.9594 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.79, allocations: 8.312 kB / 0.9594 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.7901, allocations: 45.69 kB / 0.9595 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.7903, allocations: 10.42 kB / 0.9595 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006265/0.7909, allocations: 1.305 MB / 0.9608 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.791, allocations: 0.6913 MB / 0.9614 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.45e-05/0.7911, allocations: 16.27 kB / 0.9615 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.7911, allocations: 18.56 kB / 0.9615 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7911, allocations: 0 / 0.9615 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01092/0.8021, allocations: 1.773 MB / 0.9632 GB, free: 48 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.8023, allocations: 198.6 kB / 0.9634 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.457, allocations: 3.781 kB / 0.9634 GB, free: 15.81 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat does not exist to compare? outputFormat=mat