Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_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.001192/0.001192, 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.001151/0.001151, allocations: 191.6 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.197/1.197, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.302/2.302, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.89 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5088/0.5107, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001644/0.5124, allocations: 0.7516 MB / 1.017 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.5135, allocations: 1.066 MB / 1.018 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.998e-05/0.5135, allocations: 0 / 1.018 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.864e-05/0.5135, allocations: 7.922 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.189e-05/0.5136, allocations: 7.938 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.5138, allocations: 31.97 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.392e-05/0.5139, allocations: 71.81 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.404e-05/0.514, allocations: 19.88 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.454e-05/0.514, allocations: 23.92 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.5141, allocations: 35.84 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.5141, allocations: 4 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.787e-05/0.5142, allocations: 19.97 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.5142, allocations: 11.98 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.5142, allocations: 27.86 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.5143, allocations: 71.75 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.5144, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.01e-07/0.5144, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.855e-06/0.5144, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 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.0005059/0.5149, allocations: 385.7 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.5149, allocations: 8.031 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.515, allocations: 42.67 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.515, allocations: 8.844 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.498e-05/0.5151, allocations: 160.4 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.5151, allocations: 8.375 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.5151, allocations: 8.359 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.5153, allocations: 82.16 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.5153, allocations: 3.938 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.5154, allocations: 8 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.5154, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.5155, allocations: 59.81 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004114/0.516, allocations: 320.6 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.5161, allocations: 86.47 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.5163, allocations: 40.83 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.5163, allocations: 192 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.5165, allocations: 95.31 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.5165, allocations: 0 / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004122/0.5169, allocations: 169.5 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.517, allocations: 59.39 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.517, allocations: 109.8 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.5171, allocations: 33.69 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.5171, allocations: 88.38 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.5171, allocations: 27.66 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.45e-05/0.5172, allocations: 29.7 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.5173, allocations: 326.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.5174, allocations: 35.97 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.5175, allocations: 62.48 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.5177, allocations: 98.53 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5177, allocations: 4 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002738/0.518, allocations: 141.5 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.518, allocations: 4 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.518, allocations: 4.062 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.518, allocations: 4 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.5181, allocations: 23.92 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.5182, allocations: 4 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.3e-05/0.5182, allocations: 7.984 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.5182, allocations: 4 kB / 1.021 GB, free: 13.86 MB / 0.7794 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.718e-05/0.5183, allocations: 126.3 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.5183, allocations: 8.281 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002945/0.5186, allocations: 157.8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.5187, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5187, allocations: 3.984 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5187, allocations: 3.984 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.5191, allocations: 414.2 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.5191, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.621e-05/0.5192, allocations: 15.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5192, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.5192, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5192, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5192, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.5195, allocations: 239.3 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.5196, allocations: 89.02 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.5196, allocations: 4 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.5197, allocations: 7.984 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.5197, allocations: 11.92 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.5198, allocations: 4 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.534e-05/0.5198, allocations: 87.53 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5198, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000227/0.52, allocations: 19.98 kB / 1.022 GB, free: 12.57 MB / 0.7794 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.0005441/0.5206, allocations: 0.7764 MB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002539/0.5208, allocations: 103.8 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5209, allocations: 4.125 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.521, allocations: 47.97 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.5212, allocations: 7.938 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.5226, allocations: 1.507 MB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.5228, allocations: 0.6848 MB / 1.025 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.533e-05/0.5229, allocations: 12.42 kB / 1.025 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.5229, allocations: 15.44 kB / 1.025 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.5229, allocations: 0 / 1.025 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/0.6782, allocations: 1.822 MB / 1.027 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.6785, allocations: 204.4 kB / 1.027 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/2.423, allocations: 3.938 kB / 1.027 GB, free: 7.312 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches