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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.703/1.703, allocations: 292.6 MB / 307.5 MB, free: 5.215 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.001068/0.001068, allocations: 180 kB / 377.1 MB, free: 1.543 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.75/1.75, allocations: 205.4 MB / 0.6366 GB, free: 8.629 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 89.5 kB / 0.7509 GB, free: 62.83 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005647/0.000565, allocations: 12 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2484, allocations: 116.3 MB / 0.9884 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6517/0.9001, allocations: 139.1 MB / 1.124 GB, free: 35.54 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.9004, allocations: 70.5 kB / 1.124 GB, free: 35.48 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003368/0.9038, allocations: 1.16 MB / 1.125 GB, free: 34.61 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9038, allocations: 0 / 1.125 GB, free: 34.61 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.9038, allocations: 4.562 kB / 1.125 GB, free: 34.6 MB / 0.7292 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.0004818/0.9043, allocations: 383.6 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.9044, allocations: 16.02 kB / 1.126 GB, free: 34.18 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.9044, allocations: 34.16 kB / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.9045, allocations: 9.969 kB / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.765e-05/0.9046, allocations: 180.6 kB / 1.126 GB, free: 33.93 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.9046, allocations: 4.781 kB / 1.126 GB, free: 33.92 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.9046, allocations: 11.44 kB / 1.126 GB, free: 33.91 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.9048, allocations: 87.77 kB / 1.126 GB, free: 33.84 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.9049, allocations: 0 / 1.126 GB, free: 33.84 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.9049, allocations: 0 / 1.126 GB, free: 33.84 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.9049, allocations: 4 kB / 1.126 GB, free: 33.83 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.9051, allocations: 61.73 kB / 1.126 GB, free: 33.79 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005829/0.9057, allocations: 328.5 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.9059, allocations: 91.84 kB / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.9059, allocations: 0 / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.9061, allocations: 98.36 kB / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=10): time 2.575e-06/0.9062, allocations: 0.5156 kB / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10): time 0.0004577/0.9066, allocations: 183.1 kB / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.9067, allocations: 66.84 kB / 1.127 GB, free: 33.04 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.21e-05/0.9067, allocations: 100.7 kB / 1.127 GB, free: 32.93 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.9068, allocations: 37.7 kB / 1.127 GB, free: 32.89 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.092e-05/0.9068, allocations: 85.22 kB / 1.127 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.9068, allocations: 27.17 kB / 1.127 GB, free: 32.78 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-06/0.9068, allocations: 4.109 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.063e-05/0.9069, allocations: 326.4 kB / 1.127 GB, free: 32.45 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.907, allocations: 42.84 kB / 1.128 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.9071, allocations: 61.56 kB / 1.128 GB, free: 32.35 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.9073, allocations: 54.38 kB / 1.128 GB, free: 32.31 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9073, allocations: 0 / 1.128 GB, free: 32.31 MB / 0.7292 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002808/0.9076, allocations: 152.4 kB / 1.128 GB, free: 32.17 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.9076, allocations: 8.312 kB / 1.128 GB, free: 32.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.9076, allocations: 0 / 1.128 GB, free: 32.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.9076, allocations: 4 kB / 1.128 GB, free: 32.16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.9078, allocations: 28.47 kB / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.9078, allocations: 0 / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.14e-05/0.9079, allocations: 19.41 kB / 1.128 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.9079, allocations: 7.938 kB / 1.128 GB, free: 32.11 MB / 0.7292 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 7.118e-05/0.908, allocations: 122.5 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/0.908, allocations: 8.516 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000315/0.9083, allocations: 155.8 kB / 1.128 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.9083, allocations: 4 kB / 1.128 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.9083, allocations: 0 / 1.128 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.9083, allocations: 0 / 1.128 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.9088, allocations: 422.8 kB / 1.129 GB, free: 31.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9088, allocations: 3.938 kB / 1.129 GB, free: 31.4 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.9089, allocations: 15.56 kB / 1.129 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.9089, allocations: 0 / 1.129 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.9089, allocations: 4.562 kB / 1.129 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.9089, allocations: 4 kB / 1.129 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.9089, allocations: 4.781 kB / 1.129 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.9092, allocations: 245.6 kB / 1.129 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.9092, allocations: 86.7 kB / 1.129 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.9093, allocations: 8.5 kB / 1.129 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.9094, allocations: 11.56 kB / 1.129 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.9094, allocations: 8.453 kB / 1.129 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.9094, allocations: 4.5 kB / 1.129 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.227e-05/0.9095, allocations: 87.11 kB / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9095, allocations: 0 / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002676/0.9098, allocations: 27.94 kB / 1.129 GB, free: 30.91 MB / 0.7292 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.000604/0.9104, allocations: 0.7857 MB / 1.13 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00029/0.9107, allocations: 114.2 kB / 1.13 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9107, allocations: 0 / 1.13 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.9108, allocations: 55.22 kB / 1.13 GB, free: 29.98 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.911, allocations: 12.66 kB / 1.13 GB, free: 29.97 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006183/0.9116, allocations: 0.6902 MB / 1.131 GB, free: 29.25 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.9118, allocations: 0.6906 MB / 1.131 GB, free: 28.54 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.062e-05/0.9118, allocations: 4.438 kB / 1.131 GB, free: 28.54 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.9119, allocations: 18.81 kB / 1.131 GB, free: 28.52 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.9119, allocations: 0 / 1.131 GB, free: 28.52 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/0.9254, allocations: 1.739 MB / 1.133 GB, free: 27.58 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.9257, allocations: 179.9 kB / 1.133 GB, free: 27.34 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/2.466, allocations: 0 / 1.133 GB, free: 27.34 MB / 0.7292 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)