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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001516/0.001517, 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.001692/0.001692, allocations: 195.5 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.293/2.293, allocations: 437.1 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 63.89 kB / 0.8694 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4861/0.4881, allocations: 151.6 MB / 1.017 GB, free: 2.426 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00169/0.4898, allocations: 0.679 MB / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.4909, allocations: 1.07 MB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.028e-05/0.491, allocations: 0 / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.471e-05/0.491, allocations: 3.938 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.4911, allocations: 11.88 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.4913, allocations: 47.88 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.487e-05/0.4914, allocations: 67.84 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.29e-05/0.4915, allocations: 19.97 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.748e-05/0.4916, allocations: 23.92 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.48e-05/0.4916, allocations: 35.83 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.4917, allocations: 8 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.805e-05/0.4917, allocations: 19.98 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.4917, allocations: 15.98 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.742e-05/0.4918, allocations: 35.84 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.4919, allocations: 71.75 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.4919, allocations: 4 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4919, allocations: 0 / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.4919, allocations: 0 / 1.019 GB, free: 312 kB / 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.0005163/0.4924, allocations: 390.9 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.4925, allocations: 8.031 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.349e-05/0.4925, allocations: 42.69 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.4926, allocations: 8.844 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.608e-05/0.4926, allocations: 168.4 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.4927, allocations: 12.31 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.4927, allocations: 4.375 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.4929, allocations: 74.22 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.4929, allocations: 3.938 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.4929, allocations: 11.98 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.4929, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.4931, allocations: 51.89 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.4936, allocations: 312.6 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.4937, allocations: 82.64 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.4939, allocations: 48.77 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.4939, allocations: 4.188 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.4941, allocations: 95.3 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.4941, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004165/0.4945, allocations: 161.6 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.4945, allocations: 67.39 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.15e-05/0.4946, allocations: 109.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.4946, allocations: 29.7 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.4947, allocations: 92.36 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.4947, allocations: 27.64 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.4948, allocations: 25.72 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.964e-05/0.4948, allocations: 326.8 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.495, allocations: 35.97 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.4951, allocations: 66.48 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.4953, allocations: 98.47 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.4953, allocations: 0 / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002812/0.4956, allocations: 145.4 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.4956, allocations: 8.375 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.4956, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-06/0.4956, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.4958, allocations: 23.92 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4958, allocations: 11.92 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.521e-05/0.4958, allocations: 8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.4959, allocations: 8.062 kB / 1.022 GB, free: 13.54 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.346e-05/0.4959, allocations: 125.8 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.496, allocations: 7.906 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.4963, allocations: 145.9 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4963, allocations: 4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4963, allocations: 256 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4963, allocations: 3.984 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004355/0.4967, allocations: 414.3 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4967, allocations: 0 / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.4968, allocations: 15.98 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4968, allocations: 4 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.4968, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4968, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4968, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.4972, allocations: 243.3 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.815e-05/0.4972, allocations: 81.02 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.4972, allocations: 4 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-05/0.4973, allocations: 11.98 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.4974, allocations: 11.92 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/0.4974, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.738e-05/0.4974, allocations: 83.56 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4974, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002285/0.4977, allocations: 23.98 kB / 1.023 GB, free: 12.27 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.0005208/0.4982, allocations: 0.7787 MB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002641/0.4985, allocations: 103.8 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.4985, allocations: 0 / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.4986, allocations: 47.97 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.4988, allocations: 13.81 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.5002, allocations: 1.49 MB / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001771/0.5004, allocations: 0.6924 MB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.203e-05/0.5004, allocations: 4.438 kB / 1.026 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.5005, allocations: 19.42 kB / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.5005, allocations: 0 / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.489/1.99, allocations: 2.024 MB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.089/11.08, allocations: 8.938 kB / 1.028 GB, free: 7.031 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