Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 2.623/2.623, allocations: 287.3 MB / 302.3 MB, free: 8.387 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.001608/0.001608, allocations: 183 kB / 370.8 MB, free: 10.83 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.124/2.124, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001186/0.001185, allocations: 105 kB / 0.7428 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004897/0.0004899, allocations: 19.16 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2202, allocations: 115.3 MB / 0.9783 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008708/0.2211, allocations: 409.8 kB / 0.9787 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2226, allocations: 1.044 MB / 0.9797 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.076e-05/0.2227, allocations: 0 / 0.9797 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.84e-05/0.2227, allocations: 3.938 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.444e-05/0.2228, allocations: 11.98 kB / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.2231, allocations: 35.83 kB / 0.9797 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.398e-05/0.2232, allocations: 35.95 kB / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.769e-05/0.2233, allocations: 15.98 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.164e-05/0.2234, allocations: 23.92 kB / 0.9798 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.877e-05/0.2234, allocations: 27.91 kB / 0.9798 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.2235, allocations: 4 kB / 0.9799 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.25e-05/0.2236, allocations: 15.92 kB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.2236, allocations: 19.91 kB / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.2236, allocations: 33.7 kB / 0.9799 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.2238, allocations: 47.89 kB / 0.98 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2238, allocations: 0 / 0.98 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.924e-06/0.2238, allocations: 0 / 0.98 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.2238, allocations: 0 / 0.98 GB, free: 26.53 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006722/0.2245, allocations: 387.5 kB / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.2245, allocations: 12.02 kB / 0.9803 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.237e-05/0.2246, allocations: 30.56 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.2246, allocations: 11.84 kB / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2248, allocations: 179 kB / 0.9806 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.2248, allocations: 8 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.2248, allocations: 4 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.2251, allocations: 81.64 kB / 0.9806 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2252, allocations: 0 / 0.9806 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.2252, allocations: 7.938 kB / 0.9807 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2252, allocations: 4 kB / 0.9807 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003312/0.2255, allocations: 63.89 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006186/0.2262, allocations: 316.6 kB / 0.981 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.2265, allocations: 86.55 kB / 0.9811 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.2266, allocations: 4 kB / 0.9811 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003173/0.2269, allocations: 99.48 kB / 0.9812 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 3.316e-06/0.2269, allocations: 0 / 0.9812 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0007424/0.2276, allocations: 185.5 kB / 0.9814 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.2277, allocations: 59.41 kB / 0.9814 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.101e-05/0.2278, allocations: 109.8 kB / 0.9815 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.2278, allocations: 29.7 kB / 0.9816 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.2279, allocations: 88.38 kB / 0.9817 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.2279, allocations: 31.62 kB / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/0.228, allocations: 0 / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.47e-05/0.228, allocations: 318.8 kB / 0.982 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.2282, allocations: 47.97 kB / 0.982 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.2284, allocations: 62.55 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.2287, allocations: 55.92 kB / 0.9821 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.2287, allocations: 3.938 kB / 0.9821 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004956/0.2292, allocations: 149.5 kB / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2292, allocations: 4.062 kB / 0.9823 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2292, allocations: 8.25 kB / 0.9823 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.2293, allocations: 0 / 0.9823 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.2295, allocations: 27.97 kB / 0.9823 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.2295, allocations: 4 kB / 0.9823 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.2297, allocations: 23.8 kB / 0.9824 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.2297, allocations: 4.375 kB / 0.9824 GB, free: 23.84 MB / 0.6198 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 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.2298, allocations: 127.7 kB / 0.9825 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.2298, allocations: 4 kB / 0.9825 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005208/0.2304, allocations: 161.9 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2304, allocations: 0 / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2304, allocations: 0 / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2304, allocations: 4 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.2311, allocations: 418.3 kB / 0.983 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2312, allocations: 0 / 0.983 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2313, allocations: 15.98 kB / 0.9831 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.2313, allocations: 4 kB / 0.9831 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.2313, allocations: 4 kB / 0.9831 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2314, allocations: 0 / 0.9831 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2314, allocations: 3.953 kB / 0.9831 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.2319, allocations: 243.4 kB / 0.9833 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.2319, allocations: 84.95 kB / 0.9834 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.232, allocations: 8 kB / 0.9834 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.2321, allocations: 11.98 kB / 0.9834 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.2322, allocations: 7.984 kB / 0.9834 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.2322, allocations: 7.891 kB / 0.9834 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.176e-05/0.2323, allocations: 95.27 kB / 0.9835 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2323, allocations: 0 / 0.9835 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003526/0.2327, allocations: 16 kB / 0.9835 GB, free: 22.54 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: 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 (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.000758/0.2334, allocations: 0.7885 MB / 0.9843 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004573/0.2339, allocations: 107.9 kB / 0.9844 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2339, allocations: 4.125 kB / 0.9844 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.2341, allocations: 51.95 kB / 0.9844 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.2344, allocations: 8 kB / 0.9845 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007655/0.2352, allocations: 0.6855 MB / 0.9851 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.2353, allocations: 0.6887 MB / 0.9858 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.203e-05/0.2354, allocations: 8.438 kB / 0.9858 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.2355, allocations: 19.42 kB / 0.9858 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of SimCode: time 8.92e-07/0.2355, allocations: 0 / 0.9858 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.2574, allocations: 1.754 MB / 0.9875 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002672/0.2578, allocations: 188.7 kB / 0.9877 GB, free: 18.24 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/2.718, allocations: 0 / 0.9877 GB, free: 18.24 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)