Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",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.004196/0.004197, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001036/0.001036, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.586/2.586, allocations: 469.4 MB / 0.7421 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.89 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2666, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004366/0.271, allocations: 3.077 MB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00289/0.2739, allocations: 1.924 MB / 1.225 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001965/0.2741, allocations: 7.938 kB / 1.225 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000979/0.2751, allocations: 271.6 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005294/0.2756, allocations: 203.1 kB / 1.225 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.2763, allocations: 239.8 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.2768, allocations: 322.9 kB / 1.226 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003731/0.2771, allocations: 188.9 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.2774, allocations: 135.5 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.2778, allocations: 139.5 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.2778, allocations: 20 kB / 1.226 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006802/0.2785, allocations: 411.2 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.2786, allocations: 87.78 kB / 1.227 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.2788, allocations: 119.4 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007404/0.2795, allocations: 494.3 kB / 1.227 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2795, allocations: 7.938 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2796, allocations: 0 / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.2796, allocations: 0 / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008644/0.2804, allocations: 0.5608 MB / 1.228 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2805, allocations: 8.031 kB / 1.228 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.461e-05/0.2805, allocations: 58.72 kB / 1.228 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008312/0.2814, allocations: 120.6 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.2817, allocations: 264 kB / 1.228 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.2818, allocations: 16.75 kB / 1.228 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.2818, allocations: 16.38 kB / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.2823, allocations: 357.2 kB / 1.228 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.2823, allocations: 3.984 kB / 1.228 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.2824, allocations: 19.92 kB / 1.229 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-05/0.2824, allocations: 20.42 kB / 1.229 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.2829, allocations: 293.5 kB / 1.229 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.2849, allocations: 1.734 MB / 1.23 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.2854, allocations: 323.9 kB / 1.231 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2855, allocations: 108 kB / 1.231 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.955e-05/0.2857, allocations: 89.09 kB / 1.231 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.2857, allocations: 42.5 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.2857, allocations: 0 / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23): time 0.002356/0.2881, allocations: 0.9618 MB / 1.232 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2881, allocations: 93.08 kB / 1.232 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.2883, allocations: 211.7 kB / 1.232 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.2884, allocations: 29.7 kB / 1.232 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.2885, allocations: 172.4 kB / 1.232 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.2885, allocations: 83.28 kB / 1.233 GB, free: 1.066 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.2886, allocations: 61.69 kB / 1.233 GB, free: 1 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2887, allocations: 326.8 kB / 1.233 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.289, allocations: 139.9 kB / 1.233 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/0.2892, allocations: 210.4 kB / 1.233 GB, free: 304 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.2897, allocations: 369.2 kB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2897, allocations: 0 / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008465/0.2905, allocations: 0.5159 MB / 1.234 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2906, allocations: 4.312 kB / 1.234 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2906, allocations: 8 kB / 1.234 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000494/0.2911, allocations: 147.3 kB / 1.234 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.2913, allocations: 59.91 kB / 1.234 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002871/0.2942, allocations: 4.198 MB / 1.238 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.2944, allocations: 19.92 kB / 1.238 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.2944, allocations: 12 kB / 1.238 GB, free: 10.58 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.2947, allocations: 170.3 kB / 1.239 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.2947, allocations: 19.86 kB / 1.239 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008339/0.2956, allocations: 478.7 kB / 1.239 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.2956, allocations: 4 kB / 1.239 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2956, allocations: 96 / 1.239 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2956, allocations: 7.875 kB / 1.239 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.2971, allocations: 1.001 MB / 1.24 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.2971, allocations: 4 kB / 1.24 GB, free: 8.793 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.2973, allocations: 35.92 kB / 1.24 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003718/0.2977, allocations: 139.5 kB / 1.24 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.2977, allocations: 11.98 kB / 1.24 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002608/0.3003, allocations: 4.159 MB / 1.244 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.3003, allocations: 4 kB / 1.244 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007313/0.3011, allocations: 0.6219 MB / 1.245 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3012, allocations: 128.9 kB / 1.245 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.3012, allocations: 8 kB / 1.245 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.3015, allocations: 19.98 kB / 1.245 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.3015, allocations: 23.88 kB / 1.245 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.3015, allocations: 12 kB / 1.245 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001303/0.3017, allocations: 153.5 kB / 1.245 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.743e-06/0.3017, allocations: 0 / 1.245 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000467/0.3022, allocations: 103.9 kB / 1.245 GB, free: 2.969 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001041/0.3032, allocations: 1.198 MB / 1.247 GB, free: 1.703 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008544/0.3041, allocations: 0.5834 MB / 1.247 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.3041, allocations: 4.125 kB / 1.247 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.3046, allocations: 394.9 kB / 1.247 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.3051, allocations: 47 kB / 1.248 GB, free: 0.6367 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4881/0.7932, allocations: 3.323 MB / 1.251 GB, free: 28.19 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.7935, allocations: 0.7793 MB / 1.252 GB, free: 27.49 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001815/0.7936, allocations: 57.03 kB / 1.252 GB, free: 27.49 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.7937, allocations: 75.75 kB / 1.252 GB, free: 27.48 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/0.7938, allocations: 0 / 1.252 GB, free: 27.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.8198, allocations: 6.719 MB / 1.258 GB, free: 26.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.59, allocations: 7.297 kB / 1.258 GB, free: 26.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches