Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.001334/0.001334, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.393/1.393, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.755/1.755, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.001421/0.001421, allocations: 70.2 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2228, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00218/0.225, allocations: 0.6934 MB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2263, allocations: 1.067 MB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.735e-05/0.2263, allocations: 3.938 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/0.2264, allocations: 7.938 kB / 0.7852 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.431e-05/0.2265, allocations: 3.938 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.2267, allocations: 51.81 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.661e-05/0.2268, allocations: 63.89 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.227, allocations: 8 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.227, allocations: 23.92 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.463e-05/0.2271, allocations: 43.83 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.2271, allocations: 4 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.768e-05/0.2272, allocations: 23.98 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/0.2272, allocations: 11.98 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.658e-05/0.2273, allocations: 31.86 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.2274, allocations: 79.69 kB / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2274, allocations: 0 / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2274, allocations: 0 / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.2275, allocations: 0 / 0.7855 GB, free: 11.26 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006558/0.2281, allocations: 387.5 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.2282, allocations: 8.031 kB / 0.7859 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.2282, allocations: 38.75 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.2282, allocations: 4.938 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.2284, allocations: 172.2 kB / 0.7861 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.2284, allocations: 4.375 kB / 0.7861 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.2284, allocations: 8.375 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.2286, allocations: 78.2 kB / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.2287, allocations: 11.88 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.2287, allocations: 4 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.2287, allocations: 3.938 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.2289, allocations: 55.89 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.2294, allocations: 316.8 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.2296, allocations: 78.73 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.2297, allocations: 48.77 kB / 0.7867 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2297, allocations: 0 / 0.7867 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.2299, allocations: 87.36 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.23, allocations: 0 / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004541/0.2304, allocations: 177.5 kB / 0.787 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.2305, allocations: 55.41 kB / 0.787 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.703e-05/0.2305, allocations: 109.8 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.2306, allocations: 25.7 kB / 0.7871 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.2306, allocations: 92.28 kB / 0.7872 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.2306, allocations: 28.7 kB / 0.7873 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.2307, allocations: 33.7 kB / 0.7873 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.2308, allocations: 322.8 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.2309, allocations: 43.91 kB / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.231, allocations: 57.5 kB / 0.7877 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.2313, allocations: 102.5 kB / 0.7878 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2313, allocations: 256 / 0.7878 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002966/0.2316, allocations: 145.6 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2316, allocations: 4 kB / 0.7879 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2316, allocations: 4 kB / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2316, allocations: 4 kB / 0.7879 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2318, allocations: 27.97 kB / 0.788 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2318, allocations: 7.984 kB / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.721e-05/0.2319, allocations: 15.84 kB / 0.788 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2319, allocations: 4.375 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.595e-05/0.232, allocations: 125.7 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.232, allocations: 7.906 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003246/0.2323, allocations: 153.9 kB / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2323, allocations: 0 / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2323, allocations: 0 / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2324, allocations: 0 / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.2328, allocations: 410.4 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2328, allocations: 0 / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.2329, allocations: 11.98 kB / 0.7887 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2329, allocations: 4 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.2329, allocations: 0 / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2329, allocations: 3.938 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2329, allocations: 0 / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00032/0.2333, allocations: 243.3 kB / 0.7889 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.2333, allocations: 81.05 kB / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.2333, allocations: 4 kB / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.2334, allocations: 15.98 kB / 0.789 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.2335, allocations: 11.92 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2335, allocations: 0 / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.569e-05/0.2336, allocations: 91.27 kB / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2336, allocations: 0 / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000238/0.2338, allocations: 12 kB / 0.7891 GB, free: 7.23 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006059/0.2344, allocations: 0.7828 MB / 0.7899 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002976/0.2347, allocations: 99.88 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2347, allocations: 0 / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.2349, allocations: 52.03 kB / 0.79 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.2351, allocations: 19.91 kB / 0.79 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2368, allocations: 1.482 MB / 0.7915 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.2371, allocations: 0.6846 MB / 0.7922 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.2371, allocations: 8.625 kB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.762e-05/0.2371, allocations: 23.42 kB / 0.7922 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2372, allocations: 0 / 0.7922 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.256, allocations: 2.024 MB / 0.7942 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/7.878, allocations: 3.75 kB / 0.7942 GB, free: 1.992 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)