Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.613/2.613, allocations: 287.5 MB / 302.4 MB, free: 8.402 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.001314/0.001313, allocations: 182 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.125/2.125, allocations: 205.4 MB / 0.6297 GB, free: 10.51 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.0009171/0.0009166, allocations: 87.61 kB / 0.743 GB, free: 6.516 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007529/0.0007529, allocations: 17.03 kB / 0.8659 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.231, allocations: 115.3 MB / 0.9785 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0009521/0.232, allocations: 477.6 kB / 0.9789 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.2336, allocations: 1.142 MB / 0.98 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.2337, allocations: 4 kB / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.276e-05/0.2338, allocations: 3.938 kB / 0.98 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.985e-05/0.2339, allocations: 7.922 kB / 0.98 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005907/0.2345, allocations: 115 kB / 0.9802 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.2346, allocations: 99.8 kB / 0.9802 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2347, allocations: 20.17 kB / 0.9803 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.901e-05/0.2348, allocations: 43.84 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.089e-05/0.2349, allocations: 39.88 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.117e-05/0.235, allocations: 4 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.274e-05/0.2351, allocations: 19.98 kB / 0.9804 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.94e-05/0.2351, allocations: 7.938 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.639e-05/0.2352, allocations: 37.7 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.2353, allocations: 84.08 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2353, allocations: 3.938 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 5.119e-06/0.2353, allocations: 0 / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.2354, allocations: 7.875 kB / 0.9805 GB, free: 26.15 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005615/0.2359, allocations: 404.8 kB / 0.9809 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.236, allocations: 16.02 kB / 0.9809 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.852e-05/0.236, allocations: 38.55 kB / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.2361, allocations: 11.91 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.055e-05/0.2362, allocations: 167 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.2362, allocations: 4 kB / 0.9811 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.2363, allocations: 16 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.2366, allocations: 81.58 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2366, allocations: 0 / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2366, allocations: 4 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.2366, allocations: 0 / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.2369, allocations: 63.95 kB / 0.9813 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005473/0.2375, allocations: 344.6 kB / 0.9816 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.2377, allocations: 62.55 kB / 0.9817 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.2379, allocations: 40.95 kB / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.238, allocations: 0 / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.2383, allocations: 99.34 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 2.114e-06/0.2383, allocations: 0 / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0006709/0.239, allocations: 169.5 kB / 0.982 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.2391, allocations: 55.39 kB / 0.982 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.287e-05/0.2392, allocations: 117.8 kB / 0.9821 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.2392, allocations: 25.7 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.2393, allocations: 104 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.2393, allocations: 19.73 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.2393, allocations: 4 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.438e-05/0.2394, allocations: 322.8 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.2397, allocations: 51.97 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2399, allocations: 105 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.2402, allocations: 89.61 kB / 0.9828 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2402, allocations: 0 / 0.9828 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006641/0.2409, allocations: 223.1 kB / 0.983 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.241, allocations: 37.69 kB / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.241, allocations: 0 / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.241, allocations: 7.938 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2412, allocations: 28.09 kB / 0.9831 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2412, allocations: 4 kB / 0.9831 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003965/0.2416, allocations: 43.88 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/0.2417, allocations: 15.92 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$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): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.2418, allocations: 123.5 kB / 0.9833 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.2418, allocations: 4 kB / 0.9833 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000463/0.2423, allocations: 130 kB / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2423, allocations: 7.984 kB / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.2423, allocations: 11.89 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2424, allocations: 0 / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005644/0.2429, allocations: 386.4 kB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2429, allocations: 4 kB / 0.9838 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.2431, allocations: 11.98 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.2431, allocations: 0 / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.2431, allocations: 4 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.2431, allocations: 7.938 kB / 0.9838 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2431, allocations: 0 / 0.9838 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004296/0.2436, allocations: 223.4 kB / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.995e-05/0.2436, allocations: 81.02 kB / 0.9841 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.2436, allocations: 4 kB / 0.9841 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.2438, allocations: 11.98 kB / 0.9841 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.2439, allocations: 15.94 kB / 0.9841 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.2439, allocations: 4 kB / 0.9841 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.456e-05/0.2439, allocations: 87.28 kB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2439, allocations: 3.938 kB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003564/0.2443, allocations: 27.98 kB / 0.9843 GB, free: 21.93 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006882/0.245, allocations: 0.7592 MB / 0.985 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005719/0.2456, allocations: 191.9 kB / 0.9852 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2456, allocations: 0 / 0.9852 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.2458, allocations: 43.97 kB / 0.9852 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.2462, allocations: 16.81 kB / 0.9852 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.248, allocations: 0.6974 MB / 0.9859 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.2482, allocations: 0.7001 MB / 0.9866 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.669e-05/0.2482, allocations: 4 kB / 0.9866 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.2483, allocations: 23.64 kB / 0.9866 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of SimCode: time 1.112e-06/0.2483, allocations: 0 / 0.9866 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.2699, allocations: 2.232 MB / 0.9888 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.2702, allocations: 198 kB / 0.989 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/2.814, allocations: 0 / 0.989 GB, free: 17.07 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)