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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001676/0.001682, allocations: 108 kB / 15.6 MB, free: 132 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.00119/0.00119, allocations: 196.9 kB / 16.54 MB, free: 6.672 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 67.55 kB / 0.9083 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2805, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CivilTime): time 0.00189/0.2824, allocations: 0.5746 MB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 3.678e-05/0.2825, allocations: 7.875 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.569e-05/0.2825, allocations: 0 / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.357e-05/0.2825, allocations: 0 / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.33e-05/0.2826, allocations: 0 / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.103e-05/0.2826, allocations: 0 / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.929e-05/0.2827, allocations: 8 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.883e-05/0.2827, allocations: 11.92 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.2828, allocations: 3.984 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.502e-05/0.2828, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.2828, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.459e-06/0.2828, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.324e-05/0.2828, allocations: 4 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.718e-05/0.2828, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 4.758e-05/0.2829, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2829, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2829, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.2829, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 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.0002692/0.2832, allocations: 311.6 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2832, allocations: 8.031 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.596e-05/0.2833, allocations: 38.73 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.059e-05/0.2833, allocations: 0.9375 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.496e-05/0.2834, allocations: 168.3 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.2834, allocations: 4.312 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-06/0.2834, allocations: 384 / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.914e-05/0.2835, allocations: 26.27 kB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2835, allocations: 3.938 kB / 1.065 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.2835, allocations: 4 kB / 1.065 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2836, allocations: 7.984 kB / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.2836, allocations: 0 / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.2837, allocations: 145.7 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.407e-05/0.2838, allocations: 26.55 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.329e-05/0.2838, allocations: 4.859 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.2838, allocations: 0 / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2839, allocations: 38.62 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.2839, allocations: 0 / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001328/0.284, allocations: 37.64 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.2841, allocations: 51.41 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.018e-05/0.2841, allocations: 89.86 kB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.2841, allocations: 29.69 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.2842, allocations: 80.14 kB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.2842, allocations: 0 / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.2843, allocations: 21.78 kB / 1.065 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2844, allocations: 314.8 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.2844, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.312e-06/0.2844, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.08e-05/0.2845, allocations: 12.86 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2845, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.471e-05/0.2845, allocations: 29.7 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2846, allocations: 16.03 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2846, allocations: 7.922 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2846, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.423e-05/0.2846, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.2847, allocations: 3.938 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.146e-05/0.2847, allocations: 4 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2847, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 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 8.406e-05/0.2848, allocations: 105.8 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-06/0.2848, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.374e-05/0.2848, allocations: 15.06 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2848, allocations: 3.938 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.2848, allocations: 4 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2848, allocations: 0 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.285, allocations: 145.7 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.285, allocations: 0 / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-05/0.285, allocations: 0 / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/0.285, allocations: 4 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.285, allocations: 7.938 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.285, allocations: 0 / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.285, allocations: 0 / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.113e-05/0.2851, allocations: 65.03 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.2852, allocations: 77.39 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.2852, allocations: 7.938 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.324e-06/0.2852, allocations: 3.938 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.2852, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-06/0.2852, allocations: 0 / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.067e-05/0.2853, allocations: 75.28 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2853, allocations: 4.031 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001863/0.2855, allocations: 0 / 1.066 GB, free: 11.6 MB / 0.8262 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.000503/0.286, allocations: 0.5934 MB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.449e-05/0.2861, allocations: 7.938 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2861, allocations: 4.094 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.732e-06/0.2861, allocations: 4 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.2863, allocations: 3.938 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004625/0.2867, allocations: 118.5 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.2871, allocations: 0.6729 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.375e-05/0.2871, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.2871, allocations: 11.38 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of SimCode: time 7.21e-07/0.2871, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0182/0.3053, allocations: 0.8873 MB / 1.068 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.109/7.414, allocations: 11.8 kB / 1.068 GB, free: 9.297 MB / 0.8262 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 50 --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) "" Variables in the reference:time,civTim.y Variables in the result:time,civTim.y