Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.642/1.642, allocations: 288.4 MB / 303.3 MB, free: 8.164 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.001223/0.001223, allocations: 183.2 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.741/1.741, allocations: 205.4 MB / 0.6307 GB, free: 9.977 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.00074/0.00074, allocations: 90.36 kB / 0.744 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004032, allocations: 15.92 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2511, allocations: 115.3 MB / 0.9797 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008326/0.252, allocations: 473.9 kB / 0.9801 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2533, allocations: 1.134 MB / 0.9812 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.59e-05/0.2534, allocations: 4 kB / 0.9812 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.824e-05/0.2534, allocations: 7.922 kB / 0.9812 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.357e-05/0.2535, allocations: 3.938 kB / 0.9812 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.2539, allocations: 115.3 kB / 0.9813 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.2541, allocations: 99.8 kB / 0.9814 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2542, allocations: 24.11 kB / 0.9815 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.2543, allocations: 43.84 kB / 0.9815 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.668e-05/0.2543, allocations: 39.88 kB / 0.9815 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.2544, allocations: 4 kB / 0.9815 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.968e-05/0.2544, allocations: 19.98 kB / 0.9816 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.802e-05/0.2544, allocations: 11.94 kB / 0.9816 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.268e-05/0.2545, allocations: 37.69 kB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.2546, allocations: 88.03 kB / 0.9817 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2546, allocations: 4 kB / 0.9817 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2546, allocations: 3.938 kB / 0.9817 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2546, allocations: 0 / 0.9817 GB, free: 25.45 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.0004747/0.2551, allocations: 401.6 kB / 0.9821 GB, free: 25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.2552, allocations: 16 kB / 0.9821 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.2552, allocations: 38.56 kB / 0.9821 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.2553, allocations: 11.91 kB / 0.9821 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.92e-05/0.2553, allocations: 171 kB / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.2554, allocations: 11.98 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.2554, allocations: 8 kB / 0.9823 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.2556, allocations: 81.59 kB / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.2556, allocations: 0 / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.2556, allocations: 0 / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2556, allocations: 0 / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.2558, allocations: 59.95 kB / 0.9825 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.2562, allocations: 348.6 kB / 0.9828 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.2564, allocations: 66.55 kB / 0.9829 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/0.2565, allocations: 32.97 kB / 0.9829 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.2565, allocations: 4 kB / 0.9829 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001816/0.2567, allocations: 91.44 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.2567, allocations: 3.938 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0004267/0.2572, allocations: 169.5 kB / 0.9831 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.2572, allocations: 55.36 kB / 0.9832 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.653e-05/0.2573, allocations: 117.8 kB / 0.9833 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.2573, allocations: 29.7 kB / 0.9833 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.2574, allocations: 100 kB / 0.9834 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2574, allocations: 23.73 kB / 0.9835 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.2574, allocations: 4 kB / 0.9835 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.946e-05/0.2575, allocations: 322.8 kB / 0.9838 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.2576, allocations: 55.91 kB / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.2578, allocations: 105.5 kB / 0.9839 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.2579, allocations: 89.67 kB / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.258, allocations: 0 / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003867/0.2584, allocations: 219.1 kB / 0.9842 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.2584, allocations: 45.84 kB / 0.9843 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.2584, allocations: 0 / 0.9843 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.2584, allocations: 4 kB / 0.9843 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.2585, allocations: 15.98 kB / 0.9843 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2586, allocations: 7.891 kB / 0.9843 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2588, allocations: 55.86 kB / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.2588, allocations: 8 kB / 0.9843 GB, free: 22.46 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 8.516e-05/0.2589, allocations: 119.4 kB / 0.9845 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.2589, allocations: 7.984 kB / 0.9845 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.2592, allocations: 134 kB / 0.9846 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2592, allocations: 0 / 0.9846 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2592, allocations: 0 / 0.9846 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2593, allocations: 7.984 kB / 0.9846 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000368/0.2596, allocations: 398.4 kB / 0.985 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2596, allocations: 0 / 0.985 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.2597, allocations: 15.98 kB / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2597, allocations: 0 / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.2597, allocations: 0 / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2597, allocations: 4 kB / 0.985 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2597, allocations: 3.953 kB / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.26, allocations: 219.9 kB / 0.9852 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.249e-05/0.2601, allocations: 85.02 kB / 0.9853 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.2601, allocations: 0 / 0.9853 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.54e-05/0.2602, allocations: 19.98 kB / 0.9853 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.2602, allocations: 7.938 kB / 0.9853 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.2602, allocations: 4 kB / 0.9853 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.03e-05/0.2603, allocations: 99.25 kB / 0.9854 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2603, allocations: 0 / 0.9854 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002376/0.2605, allocations: 24 kB / 0.9854 GB, free: 21.23 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.0005372/0.2611, allocations: 0.767 MB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000354/0.2614, allocations: 195.2 kB / 0.9864 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2614, allocations: 0 / 0.9864 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.2616, allocations: 39.98 kB / 0.9864 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.2619, allocations: 16.3 kB / 0.9864 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.263, allocations: 0.6995 MB / 0.9871 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.2632, allocations: 0.6923 MB / 0.9878 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.2632, allocations: 11.77 kB / 0.9878 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.325e-05/0.2633, allocations: 19.44 kB / 0.9878 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of SimCode: time 2.8e-07/0.2633, allocations: 3.938 kB / 0.9878 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.2771, allocations: 2.229 MB / 0.99 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/0.2774, allocations: 210 kB / 0.9902 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.87, allocations: 0 / 0.9902 GB, free: 16.38 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)