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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001287/0.001287, allocations: 194.2 kB / 16.14 MB, free: 6.691 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.443/1.443, allocations: 222.9 MB / 239.8 MB, free: 4.609 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.481/2.481, allocations: 390.2 MB / 0.6642 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8102/0.8116, allocations: 140.4 MB / 0.9489 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001899/0.8136, allocations: 0.7525 MB / 0.9497 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.8148, allocations: 1.068 MB / 0.9507 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.226e-05/0.8148, allocations: 3.938 kB / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.25e-05/0.8149, allocations: 0 / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.695e-05/0.815, allocations: 5.281 kB / 0.9507 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.8152, allocations: 36.7 kB / 0.9507 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.8153, allocations: 67.25 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.8154, allocations: 9.25 kB / 0.9508 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.884e-05/0.8155, allocations: 30.53 kB / 0.9508 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.893e-05/0.8156, allocations: 29.03 kB / 0.9509 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.8156, allocations: 2.656 kB / 0.9509 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.8157, allocations: 17.83 kB / 0.9509 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.176e-05/0.8157, allocations: 19.31 kB / 0.9509 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.265e-05/0.8158, allocations: 26.55 kB / 0.9509 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.8159, allocations: 63.88 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.8159, allocations: 0 / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8159, allocations: 1.031 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.8159, allocations: 0 / 0.951 GB, free: 7.641 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.0005672/0.8165, allocations: 396.7 kB / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.8166, allocations: 10.09 kB / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.8166, allocations: 3.562 kB / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.976e-05/0.8167, allocations: 166.5 kB / 0.9516 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.8167, allocations: 4.5 kB / 0.9516 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.8168, allocations: 13.02 kB / 0.9516 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.817, allocations: 86.77 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.817, allocations: 192 / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.817, allocations: 5.344 kB / 0.9517 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.817, allocations: 1.562 kB / 0.9517 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.8172, allocations: 56.64 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004778/0.8177, allocations: 309.9 kB / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.8179, allocations: 85.69 kB / 0.9521 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.818, allocations: 42.06 kB / 0.9521 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.8181, allocations: 5.016 kB / 0.9521 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.8183, allocations: 100.3 kB / 0.9522 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.873e-06/0.8183, allocations: 0 / 0.9522 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004997/0.8188, allocations: 168.6 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.8189, allocations: 54.31 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.28e-05/0.819, allocations: 110.1 kB / 0.9525 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.819, allocations: 28.05 kB / 0.9526 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.819, allocations: 93.52 kB / 0.9527 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.8191, allocations: 27.56 kB / 0.9527 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.8191, allocations: 32.89 kB / 0.9527 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.308e-05/0.8192, allocations: 320.2 kB / 0.953 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.8194, allocations: 37.12 kB / 0.9531 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.8195, allocations: 63.69 kB / 0.9531 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.8198, allocations: 110.1 kB / 0.9532 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.8198, allocations: 0.7188 kB / 0.9532 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003152/0.8201, allocations: 142.2 kB / 0.9534 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.8201, allocations: 6.375 kB / 0.9534 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.8201, allocations: 5.625 kB / 0.9534 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.8202, allocations: 1.562 kB / 0.9534 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.8203, allocations: 22.52 kB / 0.9534 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.8203, allocations: 1.656 kB / 0.9534 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.605e-05/0.8204, allocations: 9.672 kB / 0.9534 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.8204, allocations: 7.406 kB / 0.9534 GB, free: 5.434 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 8.91e-05/0.8205, allocations: 119.9 kB / 0.9535 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.8205, allocations: 11.19 kB / 0.9535 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003565/0.8209, allocations: 156.5 kB / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.8209, allocations: 1.656 kB / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.8209, allocations: 0 / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.8209, allocations: 0 / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00049/0.8214, allocations: 419.4 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.8214, allocations: 4 kB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.888e-05/0.8215, allocations: 8.781 kB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.8215, allocations: 3.984 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.8215, allocations: 1.562 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.8215, allocations: 0 / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8216, allocations: 1.438 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.8219, allocations: 240.4 kB / 0.9543 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.8219, allocations: 90.48 kB / 0.9544 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.822, allocations: 2.469 kB / 0.9544 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.8221, allocations: 13.02 kB / 0.9544 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.8221, allocations: 3.688 kB / 0.9544 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.8222, allocations: 9.422 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.126e-05/0.8222, allocations: 85.12 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8222, allocations: 0 / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002551/0.8225, allocations: 18.78 kB / 0.9546 GB, free: 4.418 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.0001536/0.8226, allocations: 111.8 kB / 0.9547 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003072/0.8229, allocations: 102.3 kB / 0.9548 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8229, allocations: 288 / 0.9548 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.8231, allocations: 47.69 kB / 0.9548 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.8234, allocations: 9.781 kB / 0.9548 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003737/0.8237, allocations: 177.2 kB / 0.955 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.8239, allocations: 0.6877 MB / 0.9557 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.055e-05/0.8239, allocations: 9.297 kB / 0.9557 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.866e-05/0.824, allocations: 11.66 kB / 0.9557 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.824, allocations: 4 kB / 0.9557 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of Templates: time 0.003529/0.8275, allocations: 0.9243 MB / 0.9566 GB, free: 2.906 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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