Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001098/0.001098, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.00921/0.00921, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.555/1.555, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.935/2.935, allocations: 473.4 MB / 0.7469 GB, free: 6.141 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004449/0.0004449, allocations: 8.25 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4145, allocations: 162.2 MB / 1.074 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001402/0.416, allocations: 417.3 kB / 1.075 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.4179, allocations: 1.069 MB / 1.076 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.419e-05/0.418, allocations: 0 / 1.076 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.36e-05/0.418, allocations: 3.938 kB / 1.076 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.829e-05/0.4181, allocations: 0 / 1.076 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.4184, allocations: 47.89 kB / 1.076 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.4185, allocations: 59.84 kB / 1.076 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.4186, allocations: 15.97 kB / 1.076 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.112e-05/0.4187, allocations: 23.92 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.963e-05/0.4188, allocations: 31.84 kB / 1.076 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.4189, allocations: 4 kB / 1.076 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.913e-05/0.4189, allocations: 19.98 kB / 1.076 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.419, allocations: 11.97 kB / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.721e-05/0.4191, allocations: 49.56 kB / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.4192, allocations: 71.73 kB / 1.076 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.4192, allocations: 4 kB / 1.076 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.456e-06/0.4193, allocations: 0 / 1.076 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.4193, allocations: 0 / 1.076 GB, free: 5.754 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.0008912/0.4202, allocations: 379.7 kB / 1.076 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.4202, allocations: 8.031 kB / 1.076 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.4203, allocations: 8.844 kB / 1.076 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.4205, allocations: 176.3 kB / 1.076 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.4205, allocations: 384 / 1.076 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.4205, allocations: 12.38 kB / 1.076 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.4208, allocations: 86.2 kB / 1.077 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.4208, allocations: 192 / 1.077 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.4209, allocations: 3.938 kB / 1.077 GB, free: 5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.4209, allocations: 4 kB / 1.077 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.4211, allocations: 67.89 kB / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000715/0.4219, allocations: 320.6 kB / 1.077 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.4221, allocations: 90.47 kB / 1.077 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.4223, allocations: 48.84 kB / 1.077 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.4223, allocations: 3.984 kB / 1.077 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002787/0.4226, allocations: 99.44 kB / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.4226, allocations: 0 / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0006035/0.4232, allocations: 193.5 kB / 1.077 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.4233, allocations: 55.41 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.4234, allocations: 109.8 kB / 1.078 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.4234, allocations: 25.7 kB / 1.078 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.4235, allocations: 92.36 kB / 1.078 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.4235, allocations: 23.66 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.4236, allocations: 21.7 kB / 1.078 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.4237, allocations: 318.8 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.4238, allocations: 43.98 kB / 1.078 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.424, allocations: 66.53 kB / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.4242, allocations: 118.4 kB / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4243, allocations: 0 / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003413/0.4246, allocations: 157.5 kB / 1.078 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4246, allocations: 8 kB / 1.078 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4246, allocations: 0 / 1.078 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.4247, allocations: 0 / 1.078 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.4248, allocations: 23.98 kB / 1.078 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.4248, allocations: 3.938 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.398e-05/0.4249, allocations: 27.97 kB / 1.078 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.4249, allocations: 4 kB / 1.078 GB, free: 2.957 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.0001101/0.425, allocations: 118.3 kB / 1.079 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.4251, allocations: 7.906 kB / 1.079 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003682/0.4254, allocations: 158.3 kB / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4255, allocations: 0 / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.4255, allocations: 0 / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4255, allocations: 4 kB / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.426, allocations: 430.3 kB / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.426, allocations: 0 / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.4261, allocations: 12 kB / 1.079 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.4261, allocations: 0 / 1.079 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.4261, allocations: 4.234 kB / 1.079 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.4262, allocations: 4 kB / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4262, allocations: 7.938 kB / 1.079 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/0.4265, allocations: 243.4 kB / 1.079 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.4266, allocations: 84.95 kB / 1.079 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.4266, allocations: 7.922 kB / 1.079 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.4267, allocations: 19.98 kB / 1.079 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.364e-05/0.4268, allocations: 4 kB / 1.079 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.4268, allocations: 11.92 kB / 1.079 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.273e-05/0.4269, allocations: 83.28 kB / 1.08 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.372e-06/0.4269, allocations: 0 / 1.08 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002569/0.4271, allocations: 19.94 kB / 1.08 GB, free: 1.656 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.0001766/0.4273, allocations: 108.6 kB / 1.08 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003209/0.4276, allocations: 111.9 kB / 1.08 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4277, allocations: 0 / 1.08 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.4278, allocations: 56.03 kB / 1.08 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.4281, allocations: 8.375 kB / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.4285, allocations: 177.4 kB / 1.08 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.4289, allocations: 0.6848 MB / 1.081 GB, free: 468 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.859e-05/0.4289, allocations: 12.42 kB / 1.081 GB, free: 456 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.429, allocations: 11.44 kB / 1.081 GB, free: 444 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.429, allocations: 0 / 1.081 GB, free: 444 kB / 0.8262 GB Notification: Performance of Templates: time 0.003355/0.4323, allocations: 0.9176 MB / 1.082 GB, free: 15.52 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1)