Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_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.00136/0.00136, allocations: 108 kB / 15.61 MB, free: 152 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.001153/0.001153, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.411/2.411, allocations: 390.3 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 63.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6004/0.6019, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001715/0.6037, allocations: 0.6801 MB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009525/0.6046, allocations: 1.066 MB / 0.9514 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.6047, allocations: 0 / 0.9514 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.459e-05/0.6047, allocations: 3.938 kB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.501e-05/0.6048, allocations: 5.219 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.605, allocations: 50.28 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.081e-05/0.6051, allocations: 75.61 kB / 0.9516 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.492e-05/0.6052, allocations: 9.469 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.126e-05/0.6053, allocations: 25.86 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.231e-05/0.6053, allocations: 35.95 kB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.6054, allocations: 7.656 kB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.848e-05/0.6054, allocations: 24.59 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.6054, allocations: 10.38 kB / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.587e-05/0.6055, allocations: 34.72 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.6056, allocations: 71.25 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6056, allocations: 0 / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6056, allocations: 0.9688 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.6056, allocations: 0 / 0.9518 GB, free: 7.535 MB / 0.7169 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.0005011/0.6061, allocations: 390.3 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.6062, allocations: 8.125 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.273e-05/0.6062, allocations: 36.59 kB / 0.9522 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.6062, allocations: 5.312 kB / 0.9522 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.482e-05/0.6063, allocations: 174.4 kB / 0.9524 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.6063, allocations: 10.84 kB / 0.9524 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.6064, allocations: 5.219 kB / 0.9524 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.6066, allocations: 83.86 kB / 0.9525 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.6066, allocations: 3.938 kB / 0.9525 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.6066, allocations: 1.281 kB / 0.9525 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.6066, allocations: 1.188 kB / 0.9525 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.6068, allocations: 52.45 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004301/0.6073, allocations: 322.3 kB / 0.9528 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.6075, allocations: 78.23 kB / 0.9529 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.6076, allocations: 46.36 kB / 0.9529 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.6076, allocations: 1.594 kB / 0.9529 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.6078, allocations: 98.77 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.6078, allocations: 0 / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004806/0.6083, allocations: 169.4 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.6084, allocations: 53.78 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.888e-05/0.6084, allocations: 109.5 kB / 0.9534 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.6084, allocations: 32.02 kB / 0.9534 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.6085, allocations: 86.38 kB / 0.9535 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.6085, allocations: 32.11 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.6086, allocations: 35.62 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.069e-05/0.6086, allocations: 320.9 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.6087, allocations: 40.97 kB / 0.9539 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.6089, allocations: 55.95 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.6091, allocations: 106.2 kB / 0.954 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6091, allocations: 0 / 0.954 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003001/0.6094, allocations: 141.8 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.6094, allocations: 5.625 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.6095, allocations: 5.656 kB / 0.9542 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.6095, allocations: 1.469 kB / 0.9542 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.6096, allocations: 27.53 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.6096, allocations: 4 kB / 0.9542 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.914e-05/0.6097, allocations: 14.16 kB / 0.9542 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.6097, allocations: 3.875 kB / 0.9542 GB, free: 5.285 MB / 0.7169 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 7.123e-05/0.6098, allocations: 123.8 kB / 0.9543 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.6098, allocations: 7.406 kB / 0.9544 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003325/0.6101, allocations: 151 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.6102, allocations: 2.156 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.6102, allocations: 0 / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.6102, allocations: 0 / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.6106, allocations: 408 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6106, allocations: 7.984 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.907e-05/0.6107, allocations: 16.05 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.6107, allocations: 1.281 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.6107, allocations: 1.062 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6107, allocations: 0 / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6108, allocations: 1.406 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.6111, allocations: 244.2 kB / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.6111, allocations: 83.58 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.6111, allocations: 1.062 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.6112, allocations: 12.67 kB / 0.9552 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.6113, allocations: 11.42 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-06/0.6113, allocations: 3.438 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.281e-05/0.6113, allocations: 88.11 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6113, allocations: 0 / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002475/0.6116, allocations: 19.03 kB / 0.9554 GB, free: 4.277 MB / 0.7169 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.0004782/0.612, allocations: 0.7754 MB / 0.9561 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.6123, allocations: 103.5 kB / 0.9562 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6124, allocations: 4.125 kB / 0.9562 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.6125, allocations: 47.38 kB / 0.9563 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.6128, allocations: 11.95 kB / 0.9563 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.6141, allocations: 1.499 MB / 0.9577 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.46e-05/0.6143, allocations: 0.692 MB / 0.9584 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.45e-05/0.6143, allocations: 9.406 kB / 0.9584 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.916e-05/0.6143, allocations: 19.8 kB / 0.9584 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6143, allocations: 0 / 0.9584 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.6423, allocations: 2.01 MB / 0.9604 GB, free: 312 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/8.216, allocations: 11.31 kB / 0.9604 GB, free: 308 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches