Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009577/0.0009577, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8999/0.8999, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.643/1.643, allocations: 359 MB / 0.6037 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.995e-06/2.995e-06, allocations: 4 kB / 0.9505 GB, free: 3.539 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/2.204e-05, allocations: 5.094 kB / 0.9505 GB, free: 3.535 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001584/0.001606, allocations: 0.6856 MB / 0.9511 GB, free: 2.844 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.002647, allocations: 1.093 MB / 0.9522 GB, free: 1.738 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.595e-05/0.002693, allocations: 0 / 0.9522 GB, free: 1.738 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.66e-05/0.002719, allocations: 3.938 kB / 0.9522 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/0.002779, allocations: 15.84 kB / 0.9522 GB, free: 1.719 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.003058, allocations: 47.77 kB / 0.9523 GB, free: 1.672 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.848e-05/0.003157, allocations: 67.83 kB / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.701e-05/0.003244, allocations: 15.98 kB / 0.9524 GB, free: 1.59 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.332e-05/0.003317, allocations: 35.91 kB / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.797e-05/0.003365, allocations: 31.95 kB / 0.9524 GB, free: 1.523 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.003381, allocations: 7.938 kB / 0.9524 GB, free: 1.516 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.184e-05/0.003433, allocations: 19.98 kB / 0.9525 GB, free: 1.496 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.003456, allocations: 19.97 kB / 0.9525 GB, free: 1.477 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.003483, allocations: 15.94 kB / 0.9525 GB, free: 1.461 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.003613, allocations: 83.78 kB / 0.9526 GB, free: 1.379 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.003615, allocations: 0 / 0.9526 GB, free: 1.379 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.915e-06/0.003618, allocations: 7.984 kB / 0.9526 GB, free: 1.371 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.003621, allocations: 4 kB / 0.9526 GB, free: 1.367 MB / 0.9011 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.0004854/0.004107, allocations: 310 kB / 0.9529 GB, free: 1.031 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.004144, allocations: 8.031 kB / 0.9529 GB, free: 1.023 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.004174, allocations: 38.75 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.862e-05/0.004232, allocations: 8.891 kB / 0.9529 GB, free: 0.9688 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.375e-05/0.004296, allocations: 113.7 kB / 0.953 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.004314, allocations: 8.375 kB / 0.953 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.004326, allocations: 4.375 kB / 0.953 GB, free: 0.8203 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.004468, allocations: 86.2 kB / 0.9531 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.004475, allocations: 192 / 0.9531 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.004483, allocations: 384 / 0.9531 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.004488, allocations: 4.125 kB / 0.9531 GB, free: 0.7266 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.004596, allocations: 55.95 kB / 0.9532 GB, free: 0.6719 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.004938, allocations: 267.8 kB / 0.9534 GB, free: 376 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.005064, allocations: 78.53 kB / 0.9535 GB, free: 288 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.888e-05/0.005122, allocations: 32.84 kB / 0.9535 GB, free: 252 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.005141, allocations: 7.938 kB / 0.9536 GB, free: 244 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.005287, allocations: 91.59 kB / 0.9536 GB, free: 140 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=10): time 9.42e-07/0.005288, allocations: 3.938 kB / 0.9536 GB, free: 136 kB / 0.9011 GB Notification: Performance of matching and sorting (n=10): time 0.0003129/0.005601, allocations: 177.5 kB / 0.9538 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.005652, allocations: 63.39 kB / 0.9539 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.494e-05/0.005717, allocations: 109.8 kB / 0.954 GB, free: 15.76 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.005734, allocations: 29.7 kB / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.00577, allocations: 92.36 kB / 0.9541 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.005792, allocations: 31.75 kB / 0.9541 GB, free: 15.6 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.00583, allocations: 29.7 kB / 0.9542 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.693e-05/0.005897, allocations: 322.8 kB / 0.9545 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.287e-05/0.00598, allocations: 31.98 kB / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.006054, allocations: 66.53 kB / 0.9546 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.006183, allocations: 102.5 kB / 0.9547 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006185, allocations: 0 / 0.9547 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001737/0.006359, allocations: 141.8 kB / 0.9548 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.00637, allocations: 4 kB / 0.9548 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.006376, allocations: 4 kB / 0.9548 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.006387, allocations: 4.062 kB / 0.9548 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.75e-05/0.006464, allocations: 31.86 kB / 0.9548 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.006469, allocations: 0 / 0.9548 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.626e-05/0.006506, allocations: 11.94 kB / 0.9548 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.006513, allocations: 4 kB / 0.9548 GB, free: 14.82 MB / 0.9167 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 6.238e-05/0.006575, allocations: 129.8 kB / 0.955 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-06/0.006585, allocations: 11.89 kB / 0.955 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.006776, allocations: 146 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.006779, allocations: 4 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.006783, allocations: 0 / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.006786, allocations: 0 / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.007098, allocations: 377.5 kB / 0.9555 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007099, allocations: 0 / 0.9555 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.928e-05/0.007128, allocations: 8 kB / 0.9555 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.007132, allocations: 3.984 kB / 0.9555 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.007138, allocations: 0 / 0.9555 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.007141, allocations: 8 kB / 0.9555 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.007142, allocations: 3.938 kB / 0.9555 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.007323, allocations: 239.3 kB / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-06/0.007331, allocations: 11.94 kB / 0.9557 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.007343, allocations: 0 / 0.9557 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.025e-05/0.007393, allocations: 7.984 kB / 0.9558 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.007426, allocations: 15.92 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.007433, allocations: 4.531 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.667e-05/0.007459, allocations: 91.28 kB / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007459, allocations: 0 / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001653/0.007625, allocations: 19.94 kB / 0.9559 GB, free: 13.68 MB / 0.9167 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.000378/0.008003, allocations: 0.782 MB / 0.9566 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001657/0.008168, allocations: 95.81 kB / 0.9567 GB, free: 12.78 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.00817, allocations: 0 / 0.9567 GB, free: 12.78 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.548e-05/0.008235, allocations: 48.03 kB / 0.9568 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.008412, allocations: 12 kB / 0.9568 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.009459, allocations: 1.509 MB / 0.9583 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.344e-05/0.009502, allocations: 75.34 kB / 0.9583 GB, free: 11.03 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.787e-05/0.00953, allocations: 8.484 kB / 0.9583 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.009567, allocations: 16.5 kB / 0.9584 GB, free: 11 MB / 0.9167 GB Notification: Performance of SimCode: time 4.51e-07/0.009567, allocations: 0 / 0.9584 GB, free: 11 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.02436, allocations: 2.791 MB / 0.9611 GB, free: 8.367 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.798/6.822, allocations: 1.688 kB / 0.9611 GB, free: 8.367 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.751425852067769]