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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001136/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001109/0.001109, allocations: 191.4 kB / 16.14 MB, free: 6.711 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.279/1.279, 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.2-maint.9.1.x/package.mo): time 2.214/2.214, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 71.88 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5323/0.5337, allocations: 140.4 MB / 0.9491 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001413/0.5351, allocations: 0.7397 MB / 0.9498 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008329/0.536, allocations: 1.068 MB / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.955e-05/0.536, allocations: 1.375 kB / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.724e-05/0.536, allocations: 3.938 kB / 0.9508 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.88e-05/0.5361, allocations: 9.297 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.5363, allocations: 40.16 kB / 0.9509 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.092e-05/0.5363, allocations: 63.39 kB / 0.9509 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.153e-05/0.5364, allocations: 13.48 kB / 0.9509 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.18e-05/0.5365, allocations: 22.27 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.5365, allocations: 41.11 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.5366, allocations: 2.781 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.5366, allocations: 21.77 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.643e-05/0.5366, allocations: 11.08 kB / 0.951 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.252e-05/0.5367, allocations: 30.55 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.427e-05/0.5368, allocations: 68.22 kB / 0.9511 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.5368, allocations: 0 / 0.9511 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.5368, allocations: 3.938 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.956e-06/0.5368, allocations: 0 / 0.9511 GB, free: 7.465 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.0004651/0.5373, allocations: 385.4 kB / 0.9515 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.5373, allocations: 9.75 kB / 0.9515 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.896e-05/0.5373, allocations: 36.03 kB / 0.9516 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.893e-05/0.5374, allocations: 9.25 kB / 0.9516 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.33e-05/0.5374, allocations: 170.9 kB / 0.9517 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.5375, allocations: 7.562 kB / 0.9517 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.5375, allocations: 4.094 kB / 0.9517 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.5377, allocations: 79.09 kB / 0.9518 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.5377, allocations: 5.25 kB / 0.9518 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.5377, allocations: 3.984 kB / 0.9518 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.5377, allocations: 1.281 kB / 0.9518 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.5379, allocations: 57.52 kB / 0.9519 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003563/0.5382, allocations: 309.9 kB / 0.9522 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.5384, allocations: 86.38 kB / 0.9523 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.5385, allocations: 46.11 kB / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.5386, allocations: 1.516 kB / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.5387, allocations: 94.48 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.5387, allocations: 1.031 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004009/0.5391, allocations: 170.3 kB / 0.9526 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.5392, allocations: 64.92 kB / 0.9526 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.694e-05/0.5392, allocations: 106 kB / 0.9527 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.5392, allocations: 35.7 kB / 0.9527 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.183e-05/0.5393, allocations: 85.88 kB / 0.9528 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.5393, allocations: 27.89 kB / 0.9529 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.5393, allocations: 32.94 kB / 0.9529 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.321e-05/0.5394, allocations: 324.1 kB / 0.9532 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.5395, allocations: 40.12 kB / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.5396, allocations: 59.97 kB / 0.9533 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.5398, allocations: 112 kB / 0.9534 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5398, allocations: 0 / 0.9534 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000266/0.5401, allocations: 141.1 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.5401, allocations: 6.906 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5401, allocations: 1.344 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.5401, allocations: 1.219 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.5403, allocations: 27.41 kB / 0.9536 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.5403, allocations: 1.156 kB / 0.9536 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.638e-05/0.5403, allocations: 13.56 kB / 0.9536 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.5404, allocations: 3.219 kB / 0.9536 GB, free: 5.219 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 5.28e-05/0.5404, allocations: 128.2 kB / 0.9537 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.5404, allocations: 10.84 kB / 0.9537 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.5407, allocations: 140.1 kB / 0.9539 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.5407, allocations: 1.094 kB / 0.9539 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5407, allocations: 4 kB / 0.9539 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.5408, allocations: 1.719 kB / 0.9539 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/0.5411, allocations: 411.1 kB / 0.9543 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.5411, allocations: 0 / 0.9543 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-05/0.5412, allocations: 12.33 kB / 0.9543 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.5412, allocations: 0 / 0.9543 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.5412, allocations: 5.531 kB / 0.9543 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5412, allocations: 4 kB / 0.9543 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.5412, allocations: 1.125 kB / 0.9543 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/0.5415, allocations: 241.1 kB / 0.9545 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.552e-05/0.5415, allocations: 82.2 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.5416, allocations: 5.406 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.5417, allocations: 9.391 kB / 0.9546 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.5417, allocations: 15.89 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.5417, allocations: 2.344 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.205e-05/0.5417, allocations: 88.23 kB / 0.9547 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5417, allocations: 3.938 kB / 0.9547 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002256/0.542, allocations: 19.09 kB / 0.9547 GB, free: 4.207 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.0004238/0.5424, allocations: 0.7665 MB / 0.9555 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.5427, allocations: 101.7 kB / 0.9556 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5427, allocations: 0 / 0.9556 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.5428, allocations: 47.56 kB / 0.9556 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.543, allocations: 17.19 kB / 0.9556 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.5442, allocations: 1.505 MB / 0.9571 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.115e-05/0.5443, allocations: 0.6842 MB / 0.9578 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.5443, allocations: 9.922 kB / 0.9578 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.5444, allocations: 19.22 kB / 0.9578 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5444, allocations: 0 / 0.9578 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.07/1.615, allocations: 1.819 MB / 0.9596 GB, free: 416 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/1.615, allocations: 215 kB / 0.9598 GB, free: 156 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/3.395, allocations: 7.938 kB / 0.9598 GB, free: 148 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