Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 2.797/2.797, allocations: 287.5 MB / 302.4 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001418/0.001418, allocations: 182.4 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.3/2.3, allocations: 205.4 MB / 0.6297 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009036/0.0009035, allocations: 85.69 kB / 0.743 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005026/0.0005028, allocations: 13.97 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2104, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009832/0.2115, allocations: 469.7 kB / 0.9789 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.2129, allocations: 1.048 MB / 0.9799 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.2129, allocations: 0 / 0.9799 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.024e-05/0.213, allocations: 7.922 kB / 0.98 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.95e-05/0.2131, allocations: 15.92 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.2134, allocations: 41.41 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.2135, allocations: 67.77 kB / 0.9801 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.2136, allocations: 16.17 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.404e-05/0.2137, allocations: 15.94 kB / 0.9801 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.549e-05/0.2138, allocations: 27.89 kB / 0.9801 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.2138, allocations: 4 kB / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.2139, allocations: 15.98 kB / 0.9802 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.2139, allocations: 15.92 kB / 0.9802 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.332e-05/0.214, allocations: 33.64 kB / 0.9802 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.2141, allocations: 60.16 kB / 0.9803 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.2142, allocations: 0 / 0.9803 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2142, allocations: 4 kB / 0.9803 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.2142, allocations: 0 / 0.9803 GB, free: 26.41 MB / 0.6198 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.0005842/0.2148, allocations: 367.1 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.2148, allocations: 12.02 kB / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.2149, allocations: 38.5 kB / 0.9807 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.2149, allocations: 15.91 kB / 0.9807 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.215, allocations: 175 kB / 0.9808 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.2151, allocations: 0 / 0.9808 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.2151, allocations: 4 kB / 0.9808 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.2154, allocations: 77.59 kB / 0.9809 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2154, allocations: 0 / 0.9809 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.2154, allocations: 4 kB / 0.9809 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.2154, allocations: 4 kB / 0.9809 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/0.2157, allocations: 51.95 kB / 0.981 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.2166, allocations: 332.6 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.2168, allocations: 66.48 kB / 0.9814 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.217, allocations: 36.97 kB / 0.9814 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.217, allocations: 7.984 kB / 0.9814 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.2173, allocations: 79.38 kB / 0.9815 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.314e-06/0.2173, allocations: 0 / 0.9815 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006017/0.2179, allocations: 153.5 kB / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.218, allocations: 51.41 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.085e-05/0.2181, allocations: 129.8 kB / 0.9818 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.2181, allocations: 25.7 kB / 0.9818 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.2182, allocations: 96.03 kB / 0.9819 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.2182, allocations: 19.75 kB / 0.9819 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-06/0.2182, allocations: 0 / 0.9819 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.07e-05/0.2183, allocations: 314.8 kB / 0.9822 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.2185, allocations: 31.97 kB / 0.9823 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.2187, allocations: 93.91 kB / 0.9823 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.2189, allocations: 47.91 kB / 0.9824 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2189, allocations: 0 / 0.9824 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004571/0.2194, allocations: 133.6 kB / 0.9825 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.2194, allocations: 9.875 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.343e-06/0.2194, allocations: 0 / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.2194, allocations: 4 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.2196, allocations: 19.92 kB / 0.9826 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2197, allocations: 7.953 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.2198, allocations: 24.05 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.2198, allocations: 4 kB / 0.9826 GB, free: 23.77 MB / 0.6198 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 8.806e-05/0.2199, allocations: 113.8 kB / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.22, allocations: 11.89 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.22, allocations: 8.375 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.22, allocations: 4 kB / 0.9827 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.22, allocations: 3.938 kB / 0.9827 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.22, allocations: 3.953 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005998/0.2207, allocations: 378.5 kB / 0.9831 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2207, allocations: 0 / 0.9831 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.148e-05/0.2208, allocations: 15.98 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2208, allocations: 3.938 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.2208, allocations: 3.953 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2208, allocations: 4 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2208, allocations: 0 / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.2212, allocations: 219.8 kB / 0.9833 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.859e-05/0.2213, allocations: 85.02 kB / 0.9834 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.2213, allocations: 0 / 0.9834 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.2215, allocations: 15.94 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.2215, allocations: 3.938 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.2215, allocations: 4 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.185e-05/0.2216, allocations: 95.92 kB / 0.9835 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.452e-06/0.2216, allocations: 4 kB / 0.9835 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003607/0.222, allocations: 15.94 kB / 0.9835 GB, free: 22.7 MB / 0.6198 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.0006823/0.2227, allocations: 0.7556 MB / 0.9843 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004336/0.2231, allocations: 92.17 kB / 0.9844 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2231, allocations: 4.125 kB / 0.9844 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.2233, allocations: 39.91 kB / 0.9844 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.2237, allocations: 14.95 kB / 0.9844 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.2252, allocations: 0.5907 MB / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.2254, allocations: 0.6962 MB / 0.9857 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.874e-05/0.2254, allocations: 7.984 kB / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.075e-05/0.2255, allocations: 19.44 kB / 0.9857 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of SimCode: time 9.62e-07/0.2255, allocations: 0 / 0.9857 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.2465, allocations: 1.804 MB / 0.9875 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.2468, allocations: 207.1 kB / 0.9877 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/2.785, allocations: 0 / 0.9877 GB, free: 18.51 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)