Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Sources.Validation.CivilTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CivilTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CivilTime",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.008459/0.008459, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.00232/0.00232, allocations: 193.3 kB / 16.68 MB, free: 6.363 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.966/2.966, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 68.11 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3268, allocations: 162.2 MB / 1.241 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime): time 0.001662/0.3285, allocations: 0.584 MB / 1.242 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 3.739e-05/0.3286, allocations: 0 / 1.242 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.833e-05/0.3286, allocations: 0 / 1.242 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.3287, allocations: 4 kB / 1.242 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.67e-05/0.3287, allocations: 0 / 1.242 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 3.436e-05/0.3287, allocations: 4 kB / 1.242 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.115e-05/0.3288, allocations: 0 / 1.242 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.916e-05/0.3289, allocations: 4.062 kB / 1.242 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.773e-05/0.3289, allocations: 3.984 kB / 1.242 GB, free: 9.574 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.683e-05/0.3289, allocations: 4 kB / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.3289, allocations: 0 / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.907e-06/0.3289, allocations: 0 / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.3289, allocations: 0 / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.329, allocations: 4 kB / 1.242 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 6.402e-05/0.329, allocations: 3.984 kB / 1.242 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.329, allocations: 3.938 kB / 1.242 GB, free: 9.559 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3291, allocations: 4 kB / 1.242 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.3291, allocations: 0 / 1.242 GB, free: 9.555 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000314/0.3294, allocations: 309.8 kB / 1.242 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3294, allocations: 12.06 kB / 1.242 GB, free: 9.191 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.248e-05/0.3295, allocations: 34.73 kB / 1.242 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.068e-05/0.3295, allocations: 8.875 kB / 1.242 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.3296, allocations: 160.4 kB / 1.243 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.3296, allocations: 384 / 1.243 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-06/0.3297, allocations: 384 / 1.243 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.253e-05/0.3298, allocations: 38.27 kB / 1.243 GB, free: 8.902 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3298, allocations: 3.938 kB / 1.243 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.3298, allocations: 0 / 1.243 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3298, allocations: 0 / 1.243 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.81e-05/0.3298, allocations: 7.875 kB / 1.243 GB, free: 8.891 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.33, allocations: 145.7 kB / 1.243 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.799e-05/0.33, allocations: 18.58 kB / 1.243 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.724e-05/0.3301, allocations: 16.92 kB / 1.243 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.3301, allocations: 0 / 1.243 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.3301, allocations: 30.56 kB / 1.243 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3301, allocations: 0 / 1.243 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.000124/0.3302, allocations: 41.53 kB / 1.243 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.3303, allocations: 51.41 kB / 1.243 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.324e-05/0.3303, allocations: 89.86 kB / 1.243 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.3303, allocations: 25.7 kB / 1.243 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.3304, allocations: 92.25 kB / 1.243 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.73e-05/0.3304, allocations: 4 kB / 1.243 GB, free: 8.277 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.577e-05/0.3305, allocations: 9.719 kB / 1.243 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3306, allocations: 310.8 kB / 1.243 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.3306, allocations: 4 kB / 1.243 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.509e-06/0.3306, allocations: 0 / 1.243 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.422e-05/0.3306, allocations: 8.859 kB / 1.243 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3306, allocations: 4.062 kB / 1.243 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.295e-05/0.3307, allocations: 37.64 kB / 1.243 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.3307, allocations: 4 kB / 1.244 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3307, allocations: 3.938 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.3307, allocations: 3.984 kB / 1.244 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.264e-05/0.3308, allocations: 4 kB / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3308, allocations: 0 / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-06/0.3308, allocations: 0 / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.3308, allocations: 0 / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.713e-05/0.3309, allocations: 110.4 kB / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.531e-06/0.3309, allocations: 7.938 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.593e-05/0.3309, allocations: 7.062 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.331, allocations: 0 / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.331, allocations: 0 / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.331, allocations: 3.984 kB / 1.244 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.3311, allocations: 149.7 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3311, allocations: 0 / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.088e-05/0.3311, allocations: 4 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.3311, allocations: 0 / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.3311, allocations: 7.938 kB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.3311, allocations: 0 / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3311, allocations: 4 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.868e-05/0.3312, allocations: 61.06 kB / 1.244 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3313, allocations: 77.11 kB / 1.244 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.3313, allocations: 7.875 kB / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.542e-06/0.3313, allocations: 0 / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.986e-05/0.3313, allocations: 4 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-06/0.3313, allocations: 4.031 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.079e-05/0.3313, allocations: 79.28 kB / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3314, allocations: 0 / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001867/0.3315, allocations: 0 / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0004204/0.332, allocations: 0.6007 MB / 1.245 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 6.169e-05/0.332, allocations: 4 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.332, allocations: 0 / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.689e-06/0.3321, allocations: 0 / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.3322, allocations: 6.344 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003142/0.3325, allocations: 115.1 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.3328, allocations: 0.669 MB / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.042e-05/0.3328, allocations: 0 / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.15e-05/0.3329, allocations: 15.56 kB / 1.245 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.3329, allocations: 0 / 1.245 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.3539, allocations: 0.8938 MB / 1.246 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.933, allocations: 23.28 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CivilTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CivilTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches