Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 210.9 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.216/3.216, allocations: 0.49 GB / 0.7951 GB, free: 33.35 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 63.06 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3118, allocations: 176.1 MB / 1.326 GB, free: 1.973 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002047/0.3139, allocations: 0.6981 MB / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3154, allocations: 1.128 MB / 1.328 GB, free: 144 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.13e-05/0.3155, allocations: 0 / 1.328 GB, free: 144 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.367e-05/0.3155, allocations: 3.938 kB / 1.328 GB, free: 140 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.3156, allocations: 15.84 kB / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.3159, allocations: 51.89 kB / 1.328 GB, free: 72 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.316, allocations: 63.84 kB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.3161, allocations: 12.06 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.185e-05/0.3162, allocations: 27.92 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.3163, allocations: 35.75 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.3163, allocations: 12 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.3164, allocations: 27.92 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.3164, allocations: 11.98 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.3164, allocations: 35.84 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.3166, allocations: 79.97 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3166, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.582e-06/0.3166, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.3166, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 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.0006304/0.3172, allocations: 314.1 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3173, allocations: 8.031 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.3173, allocations: 38.73 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.176e-05/0.3174, allocations: 4.938 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3175, allocations: 110.5 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.3175, allocations: 8.375 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.3176, allocations: 8.312 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.3178, allocations: 86.08 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3178, allocations: 7.938 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3178, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.3178, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.318, allocations: 47.95 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005405/0.3186, allocations: 279.8 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.3188, allocations: 86.45 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3189, allocations: 36.84 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.3189, allocations: 3.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.3192, allocations: 91.5 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.3192, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005189/0.3197, allocations: 173.5 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.3198, allocations: 63.34 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3199, allocations: 113.8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.3199, allocations: 29.7 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.32, allocations: 88.36 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.32, allocations: 27.8 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.3201, allocations: 33.7 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3202, allocations: 326.8 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.3203, allocations: 31.98 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.3205, allocations: 62.53 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.3207, allocations: 106.5 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3207, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003232/0.3211, allocations: 137.5 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.3211, allocations: 8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3211, allocations: 0 / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3211, allocations: 0 / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.3212, allocations: 24.3 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3212, allocations: 4 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.378e-05/0.3213, allocations: 19.94 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.3213, allocations: 4 kB / 1.33 GB, free: 13.21 MB / 1.029 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 0.0001121/0.3214, allocations: 134.2 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.3215, allocations: 4 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003597/0.3218, allocations: 150.3 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3218, allocations: 4.031 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3218, allocations: 3.938 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3218, allocations: 0 / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005728/0.3224, allocations: 381.4 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3224, allocations: 4 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.3225, allocations: 8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.3225, allocations: 8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.3225, allocations: 3.984 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3225, allocations: 0 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3225, allocations: 0 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.3229, allocations: 235.3 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.3229, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.3229, allocations: 11.98 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.323, allocations: 11.98 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.323, allocations: 7.938 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3231, allocations: 7.984 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.426e-05/0.3231, allocations: 83.28 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3231, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002547/0.3234, allocations: 19.94 kB / 1.331 GB, free: 12.07 MB / 1.029 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.0007155/0.3241, allocations: 0.7751 MB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003101/0.3244, allocations: 99.81 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3244, allocations: 0 / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.3245, allocations: 48.03 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.3248, allocations: 17.8 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.3266, allocations: 1.495 MB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.3269, allocations: 0.6923 MB / 1.334 GB, free: 8.805 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.794e-05/0.327, allocations: 8.422 kB / 1.334 GB, free: 8.797 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.327, allocations: 27.36 kB / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.327, allocations: 0 / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02916/0.3562, allocations: 2.212 MB / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.31, allocations: 2.844 kB / 1.337 GB, free: 6.691 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.044251887000428]