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.0006977/0.0006977, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007476/0.0007476, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.4 MB / 222.1 MB, free: 5.375 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.595/1.595, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0004973/0.0004973, allocations: 15.38 kB / 0.6738 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2253, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008518/0.2262, allocations: 417.5 kB / 0.7878 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2274, allocations: 1.041 MB / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.689e-05/0.2275, allocations: 3.938 kB / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.2275, allocations: 0 / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.511e-05/0.2275, allocations: 15.92 kB / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.2278, allocations: 31.91 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.707e-05/0.2279, allocations: 63.83 kB / 0.7889 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.555e-05/0.228, allocations: 11.97 kB / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.352e-05/0.228, allocations: 27.92 kB / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.2281, allocations: 27.89 kB / 0.789 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.2281, allocations: 4 kB / 0.789 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.64e-05/0.2282, allocations: 15.98 kB / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.2282, allocations: 15.92 kB / 0.789 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.594e-05/0.2282, allocations: 37.7 kB / 0.7891 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.536e-05/0.2283, allocations: 51.88 kB / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2284, allocations: 0 / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.425e-06/0.2284, allocations: 0 / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.176e-06/0.2284, allocations: 0 / 0.7891 GB, free: 10.06 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.0005501/0.2289, allocations: 378.3 kB / 0.7895 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.229, allocations: 8.031 kB / 0.7895 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.229, allocations: 42.55 kB / 0.7895 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.2291, allocations: 7.906 kB / 0.7895 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.2292, allocations: 170.9 kB / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.2292, allocations: 4 kB / 0.7897 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.2292, allocations: 8 kB / 0.7897 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.2294, allocations: 93.58 kB / 0.7898 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2295, allocations: 3.938 kB / 0.7898 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.2295, allocations: 0 / 0.7898 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2295, allocations: 0 / 0.7898 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.2297, allocations: 63.95 kB / 0.7899 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.2302, allocations: 316.6 kB / 0.7902 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.2303, allocations: 86.53 kB / 0.7903 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.2305, allocations: 52.78 kB / 0.7903 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2305, allocations: 3.984 kB / 0.7903 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.2307, allocations: 91.5 kB / 0.7904 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.2307, allocations: 4 kB / 0.7904 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004575/0.2312, allocations: 189.5 kB / 0.7906 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.2312, allocations: 59.39 kB / 0.7906 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.869e-05/0.2313, allocations: 113.8 kB / 0.7907 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.2313, allocations: 29.7 kB / 0.7908 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.449e-05/0.2314, allocations: 96.36 kB / 0.7909 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.2314, allocations: 23.66 kB / 0.7909 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-06/0.2314, allocations: 4 kB / 0.7909 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2315, allocations: 314.8 kB / 0.7912 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.2317, allocations: 43.97 kB / 0.7912 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.2318, allocations: 66.55 kB / 0.7913 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.232, allocations: 51.97 kB / 0.7913 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.232, allocations: 4 kB / 0.7913 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002971/0.2323, allocations: 149.5 kB / 0.7915 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.2323, allocations: 4 kB / 0.7915 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.2323, allocations: 4 kB / 0.7915 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.2323, allocations: 4 kB / 0.7915 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.2325, allocations: 23.98 kB / 0.7915 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2325, allocations: 4 kB / 0.7915 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.923e-05/0.2325, allocations: 23.83 kB / 0.7916 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.2326, allocations: 7.953 kB / 0.7916 GB, free: 7.324 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 ($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 9.175e-05/0.2327, allocations: 121.8 kB / 0.7917 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.2327, allocations: 4 kB / 0.7917 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.233, allocations: 162.2 kB / 0.7918 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.233, allocations: 0 / 0.7918 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.233, allocations: 0 / 0.7918 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.233, allocations: 0 / 0.7918 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004891/0.2335, allocations: 430.5 kB / 0.7922 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2335, allocations: 4 kB / 0.7922 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.2336, allocations: 8 kB / 0.7923 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2336, allocations: 4 kB / 0.7923 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2336, allocations: 15.92 kB / 0.7923 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2336, allocations: 0 / 0.7923 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2336, allocations: 0 / 0.7923 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/0.234, allocations: 243.4 kB / 0.7925 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.234, allocations: 84.95 kB / 0.7926 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.2341, allocations: 11.98 kB / 0.7926 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.2342, allocations: 11.98 kB / 0.7926 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.2342, allocations: 4 kB / 0.7926 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.2342, allocations: 3.984 kB / 0.7926 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.977e-05/0.2343, allocations: 87.23 kB / 0.7927 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2343, allocations: 0 / 0.7927 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002272/0.2345, allocations: 24 kB / 0.7927 GB, free: 6.023 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 (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.0006606/0.2352, allocations: 0.7828 MB / 0.7935 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002739/0.2355, allocations: 111.9 kB / 0.7936 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2355, allocations: 0 / 0.7936 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.2356, allocations: 52.09 kB / 0.7936 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.2359, allocations: 11.98 kB / 0.7937 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009935/0.2369, allocations: 0.576 MB / 0.7942 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.2373, allocations: 0.6848 MB / 0.7949 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.2373, allocations: 16.36 kB / 0.7949 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.51e-05/0.2374, allocations: 15.44 kB / 0.7949 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2374, allocations: 0 / 0.7949 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01189/0.2493, allocations: 1.774 MB / 0.7967 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.2495, allocations: 191.7 kB / 0.7968 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/1.909, allocations: 0 / 0.7968 GB, free: 1.797 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/linux/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) Environment - environmentSimulation: