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.008518/0.008524, allocations: 104.9 kB / 15.74 MB, free: 5.984 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.00207/0.00207, allocations: 199.1 kB / 16.68 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.399/2.399, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.713/2.713, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 67.89 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8949/0.8962, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001802/0.8981, allocations: 0.6854 MB / 1.088 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.8994, allocations: 1.063 MB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.03e-05/0.8994, allocations: 1.156 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.8995, allocations: 3.938 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.605e-05/0.8996, allocations: 9.984 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.8999, allocations: 52.47 kB / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.9, allocations: 67.72 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.9001, allocations: 11.16 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.231e-05/0.9002, allocations: 30.5 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.616e-05/0.9003, allocations: 34.11 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.9003, allocations: 6.125 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.9004, allocations: 20.92 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.556e-05/0.9004, allocations: 17.06 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.9004, allocations: 26.47 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.9006, allocations: 80.89 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.9006, allocations: 0 / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.172e-06/0.9006, allocations: 1.438 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.9007, allocations: 0 / 1.09 GB, free: 3.883 MB / 0.8575 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.0005628/0.9012, allocations: 382.5 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.9013, allocations: 9.125 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.291e-05/0.9013, allocations: 35.02 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.9013, allocations: 12.28 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.382e-05/0.9014, allocations: 171.6 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.9015, allocations: 12.33 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.9015, allocations: 5.859 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.9017, allocations: 78.02 kB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.9017, allocations: 3.938 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.9017, allocations: 5.703 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.9017, allocations: 1.062 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.902, allocations: 53.73 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.9024, allocations: 316.2 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.9026, allocations: 80.31 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.9027, allocations: 44.69 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.9028, allocations: 6.922 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.903, allocations: 94.33 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.903, allocations: 0 / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000501/0.9035, allocations: 171.9 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.9036, allocations: 60.12 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.809e-05/0.9036, allocations: 105.1 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.9037, allocations: 32.11 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.181e-05/0.9037, allocations: 88.28 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.9037, allocations: 29.73 kB / 1.091 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-05/0.9038, allocations: 31.47 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.9038, allocations: 323.6 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.904, allocations: 43.91 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.9041, allocations: 68.08 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.9044, allocations: 102.5 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.9044, allocations: 0 / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000332/0.9047, allocations: 141.6 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.9047, allocations: 5.875 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.9048, allocations: 0.75 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.9048, allocations: 2.016 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.9049, allocations: 27.58 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.9049, allocations: 1.344 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.123e-05/0.905, allocations: 15.91 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.905, allocations: 12.33 kB / 1.092 GB, free: 1.824 MB / 0.8575 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 9.218e-05/0.9051, allocations: 129 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.9052, allocations: 3.219 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.9055, allocations: 143.7 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.9056, allocations: 1.656 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.9056, allocations: 0 / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.9056, allocations: 1.266 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005109/0.9061, allocations: 413 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.9061, allocations: 0.6094 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.293e-05/0.9062, allocations: 14.38 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.9062, allocations: 4.875 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.9062, allocations: 2.266 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.9062, allocations: 0.8438 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.9062, allocations: 0.8125 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003377/0.9066, allocations: 239.1 kB / 1.093 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.62e-05/0.9066, allocations: 87.36 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.9066, allocations: 3.734 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.9067, allocations: 12.03 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.9068, allocations: 10.06 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.9068, allocations: 7.703 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.833e-05/0.9068, allocations: 86.08 kB / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9068, allocations: 0 / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002641/0.9071, allocations: 20.03 kB / 1.093 GB, free: 0.9102 MB / 0.8575 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.0006481/0.9078, allocations: 0.7776 MB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003431/0.9081, allocations: 97.06 kB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.9081, allocations: 0.7188 kB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.9083, allocations: 51.22 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.9086, allocations: 15.48 kB / 1.094 GB, free: 16.17 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.9103, allocations: 1.496 MB / 1.095 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.9106, allocations: 0.6868 MB / 1.096 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.141e-05/0.9106, allocations: 11.2 kB / 1.096 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.225e-05/0.9107, allocations: 17.28 kB / 1.096 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of SimCode: time 3.3e-07/0.9107, allocations: 4.844 kB / 1.096 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.343/4.253, allocations: 2.052 MB / 1.098 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/19.59, allocations: 7.266 kB / 1.098 GB, free: 13.72 MB / 0.8731 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