Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_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_8_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.001018/0.001018, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001073/0.001073, allocations: 192.6 kB / 16.14 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.671/1.671, allocations: 292.3 MB / 0.5484 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 68.41 kB / 0.671 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2328, allocations: 114.6 MB / 0.7828 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001923/0.2348, allocations: 0.8205 MB / 0.7836 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.236, allocations: 1.068 MB / 0.7847 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.351e-05/0.236, allocations: 4 kB / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.438e-05/0.2361, allocations: 7.922 kB / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.2362, allocations: 3.938 kB / 0.7847 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.2364, allocations: 47.89 kB / 0.7847 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.841e-05/0.2365, allocations: 63.78 kB / 0.7848 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.678e-05/0.2366, allocations: 20.19 kB / 0.7848 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.24e-05/0.2366, allocations: 27.91 kB / 0.7848 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.659e-05/0.2367, allocations: 31.84 kB / 0.7849 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.2367, allocations: 4 kB / 0.7849 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.806e-05/0.2368, allocations: 15.98 kB / 0.7849 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.2368, allocations: 15.97 kB / 0.7849 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.159e-05/0.2369, allocations: 27.8 kB / 0.7849 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.237, allocations: 83.97 kB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.237, allocations: 0 / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.42e-07/0.237, allocations: 0 / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.237, allocations: 4 kB / 0.785 GB, free: 11.61 MB / 0.6075 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.0005061/0.2375, allocations: 375.2 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2376, allocations: 12.03 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.139e-05/0.2376, allocations: 34.75 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.2376, allocations: 12.78 kB / 0.7854 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.2378, allocations: 172.2 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.2378, allocations: 8.359 kB / 0.7856 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.2378, allocations: 16.36 kB / 0.7856 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.238, allocations: 69.92 kB / 0.7857 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.238, allocations: 4 kB / 0.7857 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.238, allocations: 0 / 0.7857 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.238, allocations: 0 / 0.7857 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.2382, allocations: 43.95 kB / 0.7857 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006167/0.2388, allocations: 324.8 kB / 0.786 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.239, allocations: 58.48 kB / 0.7861 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.2391, allocations: 28.97 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.2391, allocations: 0 / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.2394, allocations: 83.36 kB / 0.7862 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.2394, allocations: 0 / 0.7862 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004094/0.2398, allocations: 129.5 kB / 0.7863 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.2398, allocations: 55.41 kB / 0.7864 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.2399, allocations: 121.8 kB / 0.7865 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.24, allocations: 29.7 kB / 0.7865 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.24, allocations: 88.14 kB / 0.7866 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.24, allocations: 27.67 kB / 0.7866 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.2401, allocations: 29.7 kB / 0.7867 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2402, allocations: 326.8 kB / 0.787 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.2403, allocations: 27.97 kB / 0.787 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.2405, allocations: 73.98 kB / 0.7871 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.2407, allocations: 105.9 kB / 0.7872 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2407, allocations: 3.984 kB / 0.7872 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002925/0.241, allocations: 129.6 kB / 0.7873 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.241, allocations: 12 kB / 0.7873 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.241, allocations: 0 / 0.7873 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2411, allocations: 4 kB / 0.7873 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.2412, allocations: 19.92 kB / 0.7873 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2412, allocations: 0 / 0.7873 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.4e-05/0.2413, allocations: 15.89 kB / 0.7873 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.2413, allocations: 4 kB / 0.7874 GB, free: 8.941 MB / 0.6075 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 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/0.2414, allocations: 122.4 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.2414, allocations: 11.94 kB / 0.7875 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.2415, allocations: 12.36 kB / 0.7875 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.2415, allocations: 7.938 kB / 0.7875 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2415, allocations: 0 / 0.7875 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2415, allocations: 0 / 0.7875 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.242, allocations: 370.3 kB / 0.7879 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.242, allocations: 4 kB / 0.7879 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.427e-05/0.242, allocations: 11.94 kB / 0.7879 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.242, allocations: 0 / 0.7879 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.242, allocations: 3.984 kB / 0.7879 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2421, allocations: 3.938 kB / 0.7879 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2421, allocations: 4 kB / 0.7879 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/0.2424, allocations: 195.8 kB / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.2424, allocations: 96.94 kB / 0.7882 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.2424, allocations: 4 kB / 0.7882 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.2425, allocations: 11.94 kB / 0.7882 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.2426, allocations: 7.969 kB / 0.7882 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2426, allocations: 4 kB / 0.7882 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.937e-05/0.2426, allocations: 95.86 kB / 0.7883 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2426, allocations: 0 / 0.7883 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002475/0.2429, allocations: 16 kB / 0.7883 GB, free: 7.879 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006135/0.2435, allocations: 0.7359 MB / 0.789 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002642/0.2438, allocations: 84.23 kB / 0.7891 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2438, allocations: 4 kB / 0.7891 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.2439, allocations: 39.91 kB / 0.7891 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.2442, allocations: 14.59 kB / 0.7891 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.2458, allocations: 1.53 MB / 0.7906 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.246, allocations: 0.6923 MB / 0.7913 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.446e-05/0.2461, allocations: 8 kB / 0.7913 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.2461, allocations: 23.42 kB / 0.7913 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.2461, allocations: 0 / 0.7913 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01095/0.2571, allocations: 1.853 MB / 0.7932 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.2573, allocations: 227 kB / 0.7934 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.922, allocations: 0 / 0.7934 GB, free: 2.613 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)