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.00118/0.00118, 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.001444/0.001444, 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.368/1.368, 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.691/1.691, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001535/0.001535, allocations: 74.69 kB / 0.6716 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.217, 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.002384/0.2194, allocations: 0.6934 MB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2211, allocations: 1.063 MB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.573e-05/0.2212, allocations: 0 / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.237e-05/0.2212, allocations: 7.938 kB / 0.7852 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.976e-05/0.2213, allocations: 11.92 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003637/0.2217, allocations: 43.83 kB / 0.7853 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.2219, allocations: 71.83 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.222, allocations: 15.92 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.839e-05/0.2221, allocations: 19.98 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.214e-05/0.2222, allocations: 35.84 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.2222, allocations: 11.98 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.923e-05/0.2223, allocations: 15.98 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.2223, allocations: 19.98 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.067e-05/0.2224, allocations: 27.86 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.2225, allocations: 75.75 kB / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2225, allocations: 4 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2225, allocations: 0 / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.2225, allocations: 0 / 0.7855 GB, free: 11.25 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.000624/0.2232, allocations: 382 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2232, allocations: 12.03 kB / 0.7859 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.2233, allocations: 38.73 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.508e-05/0.2233, allocations: 4.938 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.2235, allocations: 180.2 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2235, allocations: 4.375 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.2235, allocations: 8.375 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.2238, allocations: 78.2 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.2238, allocations: 7.875 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.2238, allocations: 0 / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.2238, allocations: 11.94 kB / 0.7862 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.2242, allocations: 51.95 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005935/0.2248, allocations: 312.7 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.225, allocations: 78.55 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.2251, allocations: 44.83 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.2251, allocations: 4 kB / 0.7867 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.2254, allocations: 91.48 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.2255, allocations: 0 / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.00055/0.226, allocations: 177.5 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.2261, allocations: 55.41 kB / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.2262, allocations: 105.8 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2262, allocations: 29.7 kB / 0.7871 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.2263, allocations: 96.27 kB / 0.7872 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.2263, allocations: 24.72 kB / 0.7873 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.576e-05/0.2264, allocations: 29.7 kB / 0.7873 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2265, allocations: 330.8 kB / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.2267, allocations: 32.23 kB / 0.7876 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2268, allocations: 62.53 kB / 0.7877 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.227, allocations: 110.5 kB / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2271, allocations: 112 / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003189/0.2274, allocations: 145.5 kB / 0.7879 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2274, allocations: 8 kB / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2274, allocations: 0 / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.2274, allocations: 0 / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.2276, allocations: 27.98 kB / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.2276, allocations: 0 / 0.788 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.516e-05/0.2277, allocations: 20.2 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.2277, allocations: 8 kB / 0.788 GB, free: 8.48 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 9.425e-05/0.2278, allocations: 117.8 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.2278, allocations: 7.906 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/0.2282, allocations: 149.9 kB / 0.7883 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2282, allocations: 4 kB / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2282, allocations: 0 / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2282, allocations: 0 / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005084/0.2287, allocations: 406.4 kB / 0.7887 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2287, allocations: 0 / 0.7887 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.901e-05/0.2288, allocations: 11.94 kB / 0.7887 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2288, allocations: 3.938 kB / 0.7887 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.2288, allocations: 11.98 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2289, allocations: 0 / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2289, allocations: 0 / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.2292, allocations: 239.3 kB / 0.7889 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.2293, allocations: 89.03 kB / 0.789 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.2293, allocations: 0 / 0.789 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2294, allocations: 15.98 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.2295, allocations: 7.938 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.2295, allocations: 7.984 kB / 0.789 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.2295, allocations: 83.28 kB / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2295, allocations: 0 / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002472/0.2298, allocations: 16 kB / 0.7891 GB, free: 7.227 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.0007712/0.2306, allocations: 0.7791 MB / 0.7899 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003465/0.2309, allocations: 107.8 kB / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2309, allocations: 0 / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.2311, allocations: 39.98 kB / 0.79 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002952/0.2314, allocations: 27.02 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.001841/0.2332, allocations: 1.488 MB / 0.7915 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.2335, allocations: 0.6885 MB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.59e-05/0.2336, allocations: 4.438 kB / 0.7922 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.624e-05/0.2336, allocations: 23.42 kB / 0.7922 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.2336, allocations: 0 / 0.7922 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.2519, allocations: 2.017 MB / 0.7942 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.325/7.577, 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --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)