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.00106/0.00106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001201/0.001201, allocations: 190.9 kB / 16.25 MB, free: 6.621 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.308/1.308, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.581/1.581, allocations: 292.3 MB / 0.5486 GB, free: 13.65 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.001411/0.001411, allocations: 69.69 kB / 0.6711 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2214, allocations: 114.6 MB / 0.783 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002458/0.2239, allocations: 0.8205 MB / 0.7838 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.2256, allocations: 1.068 MB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.787e-05/0.2256, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/0.2257, allocations: 7.922 kB / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.162e-05/0.2258, allocations: 7.938 kB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.2262, allocations: 51.89 kB / 0.7849 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.2263, allocations: 67.78 kB / 0.785 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.2265, allocations: 24.17 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2266, allocations: 27.92 kB / 0.785 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.818e-05/0.2267, allocations: 35.78 kB / 0.7851 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.2267, allocations: 8 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.224e-05/0.2268, allocations: 19.98 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.728e-05/0.2268, allocations: 11.97 kB / 0.7851 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.889e-05/0.2269, allocations: 35.8 kB / 0.7851 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.2271, allocations: 79.97 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2271, allocations: 0 / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2271, allocations: 3.938 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.2271, allocations: 0 / 0.7852 GB, free: 11.5 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.0005794/0.2277, allocations: 383.3 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.2278, allocations: 8.031 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.599e-05/0.2278, allocations: 30.75 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.2278, allocations: 8.844 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.228, allocations: 172.2 kB / 0.7858 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.228, allocations: 12.36 kB / 0.7858 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.228, allocations: 8.312 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.2282, allocations: 69.98 kB / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2283, allocations: 0 / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2283, allocations: 4 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2283, allocations: 0 / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.2284, allocations: 43.95 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.2291, allocations: 328.6 kB / 0.7862 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.2293, allocations: 58.55 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.2294, allocations: 28.95 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.2295, allocations: 4 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.2297, allocations: 79.41 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.2297, allocations: 4 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004285/0.2301, allocations: 125.5 kB / 0.7865 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.2302, allocations: 55.41 kB / 0.7866 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.2303, allocations: 118.2 kB / 0.7867 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.2303, allocations: 33.7 kB / 0.7867 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.999e-05/0.2304, allocations: 92.12 kB / 0.7868 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.2304, allocations: 23.69 kB / 0.7868 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-05/0.2305, allocations: 25.7 kB / 0.7868 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.2306, allocations: 326.8 kB / 0.7872 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.2307, allocations: 31.97 kB / 0.7872 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.2308, allocations: 81.97 kB / 0.7873 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.2311, allocations: 105.9 kB / 0.7874 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2311, allocations: 0 / 0.7874 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003595/0.2315, allocations: 133.4 kB / 0.7875 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2315, allocations: 12.22 kB / 0.7875 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2315, allocations: 0 / 0.7875 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.2315, allocations: 4 kB / 0.7875 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.2317, allocations: 23.92 kB / 0.7875 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.2317, allocations: 4 kB / 0.7875 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.234e-05/0.2318, allocations: 11.89 kB / 0.7875 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.2318, allocations: 4 kB / 0.7876 GB, free: 8.816 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 9.151e-05/0.2319, allocations: 122.4 kB / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.2319, allocations: 11.98 kB / 0.7877 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.2319, allocations: 12.38 kB / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.2319, allocations: 0 / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2319, allocations: 0 / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.232, allocations: 0 / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.2325, allocations: 382.2 kB / 0.7881 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.2325, allocations: 0 / 0.7881 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.15e-05/0.2325, allocations: 11.98 kB / 0.7881 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2325, allocations: 0 / 0.7881 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.2326, allocations: 8 kB / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.2326, allocations: 3.938 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2326, allocations: 0 / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.2329, allocations: 191.4 kB / 0.7883 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.2329, allocations: 100.9 kB / 0.7884 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.2329, allocations: 0 / 0.7884 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.035e-05/0.233, allocations: 7.938 kB / 0.7884 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.2331, allocations: 11.98 kB / 0.7884 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.2331, allocations: 0 / 0.7884 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.199e-05/0.2331, allocations: 91.27 kB / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.4e-07/0.2331, allocations: 0 / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002545/0.2334, allocations: 16 kB / 0.7885 GB, free: 7.766 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.0006158/0.234, allocations: 0.7364 MB / 0.7892 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002719/0.2343, allocations: 80.27 kB / 0.7893 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2343, allocations: 4.062 kB / 0.7893 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.2344, allocations: 39.95 kB / 0.7893 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.2347, allocations: 11.94 kB / 0.7893 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.2365, allocations: 1.533 MB / 0.7908 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.2368, allocations: 0.6885 MB / 0.7915 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.447e-05/0.2369, allocations: 12 kB / 0.7915 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.37e-05/0.2369, allocations: 27.36 kB / 0.7915 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of SimCode: time 6.61e-07/0.2369, allocations: 0 / 0.7915 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.249, allocations: 1.928 MB / 0.7934 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/0.2493, allocations: 220.8 kB / 0.7936 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/2.684, allocations: 0 / 0.7936 GB, free: 2.453 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)