Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, 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.0016/0.0016, allocations: 193.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.947/2.947, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 66.8 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3971, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002316/0.3994, allocations: 0.6857 MB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.401, allocations: 1.079 MB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.404e-05/0.401, allocations: 0 / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.52e-05/0.4011, allocations: 3.938 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.19e-05/0.4012, allocations: 11.88 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.4015, allocations: 43.89 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.4017, allocations: 71.83 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.4018, allocations: 11.98 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.25e-05/0.4019, allocations: 35.91 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.499e-05/0.402, allocations: 31.84 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.402, allocations: 4 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.571e-05/0.4021, allocations: 27.92 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.4021, allocations: 11.98 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.653e-05/0.4022, allocations: 35.84 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.4024, allocations: 71.75 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8262 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.0007286/0.4031, allocations: 375.7 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4032, allocations: 16.03 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.22e-05/0.4032, allocations: 12.83 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.4034, allocations: 172.3 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.4034, allocations: 8.375 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.4035, allocations: 4.375 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.4037, allocations: 78.2 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.4037, allocations: 192 / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.4037, allocations: 7.938 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.4038, allocations: 7.984 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.404, allocations: 51.95 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005923/0.4046, allocations: 312.6 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.4048, allocations: 82.48 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.4049, allocations: 48.83 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.4049, allocations: 0 / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.4052, allocations: 95.48 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.4052, allocations: 0 / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004967/0.4057, allocations: 173.5 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.4057, allocations: 63.39 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.946e-05/0.4058, allocations: 106.2 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.4059, allocations: 29.7 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.4059, allocations: 84.38 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.406, allocations: 31.64 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/0.406, allocations: 33.64 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4061, allocations: 318.8 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.4063, allocations: 39.97 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.4064, allocations: 62.53 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.4066, allocations: 106.4 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4066, allocations: 0 / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003149/0.407, allocations: 141.5 kB / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.407, allocations: 8 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.407, allocations: 0 / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.407, allocations: 0 / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4072, allocations: 23.92 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4072, allocations: 0 / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/0.4073, allocations: 27.89 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.4073, allocations: 4 kB / 1.073 GB, free: 5.562 MB / 0.8262 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 0.0001096/0.4074, allocations: 126.3 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.443e-05/0.4074, allocations: 4 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.4078, allocations: 141.9 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.4078, allocations: 4 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4078, allocations: 4 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4078, allocations: 256 / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005332/0.4084, allocations: 406.3 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4084, allocations: 7.984 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.736e-05/0.4084, allocations: 11.94 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4085, allocations: 4 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.4085, allocations: 7.984 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-06/0.4085, allocations: 4 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4085, allocations: 0 / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.4088, allocations: 231.5 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.4089, allocations: 88.95 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.4089, allocations: 7.984 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.409, allocations: 11.98 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.4091, allocations: 7.938 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.4091, allocations: 7.938 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.845e-05/0.4092, allocations: 87.27 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4092, allocations: 0 / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002482/0.4094, allocations: 24 kB / 1.074 GB, free: 4.293 MB / 0.8262 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.0001865/0.4096, allocations: 107.2 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.4099, allocations: 111.9 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.41, allocations: 0 / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.4101, allocations: 47.97 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.4104, allocations: 8 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.4109, allocations: 170.7 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.4112, allocations: 0.6851 MB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.034e-05/0.4113, allocations: 8.422 kB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.4113, allocations: 11.44 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.4113, allocations: 0 / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of Templates: time 0.004478/0.4158, allocations: 1.034 MB / 1.076 GB, free: 2.07 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1)